File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
Expand file tree Collapse file tree 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
110110 RegexGroupWalkResult::createEmpty (),
111111 );
112112
113- if (!$ subjectAsGroupResult ->containsEmptyStringLiteral ()) {
113+ if (!$ subjectAsGroupResult ->mightContainEmptyStringLiteral ()) {
114114 // we could handle numeric-string, in case we know the regex is delimited by ^ and $
115115 if ($ subjectAsGroupResult ->isNonFalsy ()->yes ()) {
116116 $ astWalkResult = $ astWalkResult ->withSubjectBaseType (
Original file line number Diff line number Diff line change @@ -103,7 +103,7 @@ public function getOnlyLiterals(): ?array
103103 return $ this ->onlyLiterals ;
104104 }
105105
106- public function containsEmptyStringLiteral (): bool
106+ public function mightContainEmptyStringLiteral (): bool
107107 {
108108 if ($ this ->onlyLiterals === null ) {
109109 return false ;
You can’t perform that action at this time.
0 commit comments