File tree 2 files changed +2
-2
lines changed
2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -110,7 +110,7 @@ public function parseGroups(string $regex): ?RegexAstWalkResult
110
110
RegexGroupWalkResult::createEmpty (),
111
111
);
112
112
113
- if (!$ subjectAsGroupResult ->containsEmptyStringLiteral ()) {
113
+ if (!$ subjectAsGroupResult ->mightContainEmptyStringLiteral ()) {
114
114
// we could handle numeric-string, in case we know the regex is delimited by ^ and $
115
115
if ($ subjectAsGroupResult ->isNonFalsy ()->yes ()) {
116
116
$ astWalkResult = $ astWalkResult ->withSubjectBaseType (
Original file line number Diff line number Diff line change @@ -103,7 +103,7 @@ public function getOnlyLiterals(): ?array
103
103
return $ this ->onlyLiterals ;
104
104
}
105
105
106
- public function containsEmptyStringLiteral (): bool
106
+ public function mightContainEmptyStringLiteral (): bool
107
107
{
108
108
if ($ this ->onlyLiterals === null ) {
109
109
return false ;
You can’t perform that action at this time.
0 commit comments