mirror of
https://github.com/rectorphp/rector.git
synced 2025-01-17 13:28:18 +01:00
Updated Rector to commit fbc391aa82a629f07f432860b146e617156a48e3
fbc391aa82
No need normalize cwd() as only need strlen() on VendorMissAnalyseGuard (#5598)
This commit is contained in:
parent
f2b6b79e92
commit
3899caefbf
@ -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
|
||||
*/
|
||||
|
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user