Updated Rector to commit fbc391aa82a629f07f432860b146e617156a48e3

fbc391aa82 No need normalize cwd() as only need strlen() on VendorMissAnalyseGuard (#5598)
This commit is contained in:
Tomas Votruba 2024-02-10 13:48:41 +00:00
parent f2b6b79e92
commit 3899caefbf
2 changed files with 3 additions and 3 deletions

View File

@ -19,12 +19,12 @@ final class VersionResolver
* @api
* @var string
*/
public const PACKAGE_VERSION = '6d408f520f1766ba4450d057e6e10c0ffbfa9275';
public const PACKAGE_VERSION = 'fbc391aa82a629f07f432860b146e617156a48e3';
/**
* @api
* @var string
*/
public const RELEASE_DATE = '2024-02-10 13:40:21';
public const RELEASE_DATE = '2024-02-10 13:46:36';
/**
* @var int
*/

View File

@ -32,7 +32,7 @@ final class VendorMissAnalyseGuard
*/
private function containsVendorPath(array $filePaths) : bool
{
$cwdLength = \strlen(PathNormalizer::normalize(\getcwd()));
$cwdLength = \strlen(\getcwd());
foreach ($filePaths as $filePath) {
$normalizedPath = PathNormalizer::normalize(\realpath($filePath));
if (\strncmp(\substr($normalizedPath, $cwdLength), '/vendor/', \strlen('/vendor/')) === 0) {