mirror of
https://github.com/php/php-src.git
synced 2025-08-15 13:38:49 +02:00
gen_stub: avoid unneeded regex match
This commit is contained in:
parent
ecc403a8fa
commit
5ae87ffef4
1 changed files with 1 additions and 1 deletions
|
@ -54,7 +54,7 @@ function processDirectory(string $dir, Context $context): array {
|
|||
);
|
||||
foreach ($it as $file) {
|
||||
$pathName = $file->getPathName();
|
||||
if (preg_match('/\.stub\.php$/', $pathName)) {
|
||||
if (substr($pathName, -9) === '.stub.php') {
|
||||
$pathNames[] = $pathName;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue