mirror of
https://github.com/rectorphp/rector.git
synced 2024-06-01 00:40:52 +00:00
Updated Rector to commit 29562ce48e265fbd75bf13df5e6662af76a44846
29562ce48e
[VendorLocker] Early return false on private method on ParentClassMethodTypeOverrideGuard::hasParentClassMethod() (#5644)
This commit is contained in:
parent
7569719db8
commit
bf8ee68288
|
@ -19,12 +19,12 @@ final class VersionResolver
|
||||||
* @api
|
* @api
|
||||||
* @var string
|
* @var string
|
||||||
*/
|
*/
|
||||||
public const PACKAGE_VERSION = '381ecb376283095a82809fd319eae0cfd237165a';
|
public const PACKAGE_VERSION = '29562ce48e265fbd75bf13df5e6662af76a44846';
|
||||||
/**
|
/**
|
||||||
* @api
|
* @api
|
||||||
* @var string
|
* @var string
|
||||||
*/
|
*/
|
||||||
public const RELEASE_DATE = '2024-02-20 16:21:56';
|
public const RELEASE_DATE = '2024-02-21 01:58:22';
|
||||||
/**
|
/**
|
||||||
* @var int
|
* @var int
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -53,6 +53,10 @@ final class ParentClassMethodTypeOverrideGuard
|
||||||
*/
|
*/
|
||||||
public function hasParentClassMethod($classMethod) : bool
|
public function hasParentClassMethod($classMethod) : bool
|
||||||
{
|
{
|
||||||
|
// early got false on private method
|
||||||
|
if ($classMethod->isPrivate()) {
|
||||||
|
return \false;
|
||||||
|
}
|
||||||
try {
|
try {
|
||||||
$parentClassMethod = $this->resolveParentClassMethod($classMethod);
|
$parentClassMethod = $this->resolveParentClassMethod($classMethod);
|
||||||
return $parentClassMethod instanceof MethodReflection;
|
return $parentClassMethod instanceof MethodReflection;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user