From 2134651e3eb19275ee66f90e21e316ee8adfc60f Mon Sep 17 00:00:00 2001 From: Jorg Sowa Date: Sat, 4 Jul 2026 18:30:40 +0200 Subject: [PATCH] Fix incorrect method case for SplFileInfo::getPathname() in gen_stub.php getPathName() was called instead of the correctly-cased getPathname(). --- build/gen_stub.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/build/gen_stub.php b/build/gen_stub.php index e60e61885206..2e5dc4d2e78f 100755 --- a/build/gen_stub.php +++ b/build/gen_stub.php @@ -84,7 +84,7 @@ function processDirectory(string $dir, Context $context): array { RecursiveIteratorIterator::LEAVES_ONLY ); foreach ($it as $file) { - $pathName = $file->getPathName(); + $pathName = $file->getPathname(); if (str_ends_with($pathName, '.stub.php')) { $pathNames[] = $pathName; } @@ -5560,7 +5560,7 @@ function replacePredefinedConstants(string $targetDirectory, array $constMap, ar ); foreach ($it as $file) { - $pathName = $file->getPathName(); + $pathName = $file->getPathname(); if (!preg_match('/(?:[\w\.]*constants[\w\._]*|tokens).xml$/i', basename($pathName))) { continue; } @@ -5741,7 +5741,7 @@ function replaceClassSynopses( ); foreach ($it as $file) { - $pathName = $file->getPathName(); + $pathName = $file->getPathname(); if (!preg_match('/\.xml$/i', $pathName)) { continue; } @@ -5958,7 +5958,7 @@ function replaceMethodSynopses( ); foreach ($it as $file) { - $pathName = $file->getPathName(); + $pathName = $file->getPathname(); if (!preg_match('/\.xml$/i', $pathName)) { continue; }