mirror of https://github.com/rectorphp/rector.git
Updated Rector to commit 38b3c20c5b36f1a821d3f38dfef63f547bb1b918
38b3c20c5b
Faster FileInfoMatcher (#5830)
This commit is contained in:
parent
61037dab6c
commit
e01fd7276e
|
@ -19,12 +19,12 @@ final class VersionResolver
|
|||
* @api
|
||||
* @var string
|
||||
*/
|
||||
public const PACKAGE_VERSION = '25c1b437061df8d1361f457c603dcd17b10a29c4';
|
||||
public const PACKAGE_VERSION = '38b3c20c5b36f1a821d3f38dfef63f547bb1b918';
|
||||
/**
|
||||
* @api
|
||||
* @var string
|
||||
*/
|
||||
public const RELEASE_DATE = '2024-04-18 14:36:00';
|
||||
public const RELEASE_DATE = '2024-04-19 18:46:00';
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
|
|
|
@ -66,6 +66,10 @@ final class FileInfoMatcher
|
|||
if ($this->fnmatcher->match($ignoredPath, $filePath)) {
|
||||
return \true;
|
||||
}
|
||||
// realpathMatcher cannot resolve wildcards -> return early to prevent unnecessary IO
|
||||
if (\strpos($ignoredPath, '*') !== \false) {
|
||||
return \false;
|
||||
}
|
||||
return $this->realpathMatcher->match($ignoredPath, $filePath);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue