mirror of
https://github.com/rectorphp/rector.git
synced 2025-01-17 21:38:22 +01:00
Updated Rector to commit 522668e4edce544bcb17ba3d71182629df19fd95
522668e4ed
[Performance] [VendorLocker] Early allow change return type on private method on ClassMethodReturnTypeOverrideGuard::shouldSkipClassMethod() (#5642)
This commit is contained in:
parent
c2f97b2f3a
commit
1281d2f6ab
@ -19,12 +19,12 @@ final class VersionResolver
|
||||
* @api
|
||||
* @var string
|
||||
*/
|
||||
public const PACKAGE_VERSION = '23179d00859ca75e0b2e1ceff61bba93a9558806';
|
||||
public const PACKAGE_VERSION = '522668e4edce544bcb17ba3d71182629df19fd95';
|
||||
/**
|
||||
* @api
|
||||
* @var string
|
||||
*/
|
||||
public const RELEASE_DATE = '2024-02-20 22:48:32';
|
||||
public const RELEASE_DATE = '2024-02-20 22:59:11';
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
|
@ -48,6 +48,10 @@ final class ClassMethodReturnTypeOverrideGuard
|
||||
if ($this->magicClassMethodAnalyzer->isUnsafeOverridden($classMethod)) {
|
||||
return \true;
|
||||
}
|
||||
// early allow add return type on private method
|
||||
if ($classMethod->isPrivate()) {
|
||||
return \false;
|
||||
}
|
||||
$classReflection = $this->reflectionResolver->resolveClassReflection($classMethod);
|
||||
if (!$classReflection instanceof ClassReflection) {
|
||||
return \true;
|
||||
|
Loading…
x
Reference in New Issue
Block a user