Skip to content

Commit

Permalink
support for php 8.4
Browse files Browse the repository at this point in the history
  • Loading branch information
imanghafoori1 committed Jan 26, 2025
1 parent c676a1e commit 6bff04d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
}
],
"require": {
"php": "^7.2|8.0.*|8.1.*|8.2.*|8.3.*",
"php": "^7.2|8.0.*|8.1.*|8.2.*|8.3.*|8.4.*",
"imanghafoori/composer-json": "^1.0.17",
"composer/class-map-generator": "^1.0.0",
"imanghafoori/php-abstract-filesystem": "^0.1.5",
Expand Down
2 changes: 1 addition & 1 deletion src/SearchReplace/PatternRefactorings.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public static function check(PhpFileDescriptor $file, $patterns)
$i = 0;
start:
$namedPatterns = $pattern['named_patterns'] ?? [];
$matchedValues = Finder::getMatches($pattern['search'], $tokens, $pattern['predicate'], $pattern['mutator'], $namedPatterns, $pattern['filters'], $i);
$matchedValues = Finder::getMatches($pattern['search'], $tokens, $pattern['predicate'], $pattern['mutator'], $namedPatterns, $pattern['filters'], $i, null, $pattern['ignore_whitespaces'] ?? true);

if (! $matchedValues) {
$cacheKey && CachedFiles::put($cacheKey, $file);
Expand Down

0 comments on commit 6bff04d

Please sign in to comment.