Skip to content

Commit dd7bc45

Browse files
LubuSebstaabm
authored andcommitted
Avoid PHP 7.4-incompatible scanner call
1 parent a7127be commit dd7bc45

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎src/Reflection/BetterReflection/SourceLocator/PhpFileCleaner.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ public function clean(string $contents, int $maxMatches): string
148148

149149
if (
150150
substr($this->contents, $this->index, $type['length']) === $type['name']
151-
&& $this->match('~.\\b(?<![\\$:>])' . $type['name'] . '\\b~Ais', offset: $this->index - 1)
151+
&& $this->match('~.\\b(?<![\\$:>])' . $type['name'] . '\\b~Ais', $match, $this->index - 1)
152152
) {
153153
if ($maxMatches === 1 && $this->match($type['pattern'], $match, $this->index - 1)) {
154154
return $clean . $match[0];

0 commit comments

Comments
 (0)