Skip to content

Commit

Permalink
[VendorLocker] Early return false on private method on ParentClassMet…
Browse files Browse the repository at this point in the history
…hodTypeOverrideGuard::hasParentClassMethod() (#5644)
  • Loading branch information
samsonasik committed Feb 20, 2024
1 parent 381ecb3 commit 29562ce
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/VendorLocker/ParentClassMethodTypeOverrideGuard.php
Expand Up @@ -28,6 +28,11 @@ public function __construct(

public function hasParentClassMethod(ClassMethod|MethodReflection $classMethod): bool
{
// early got false on private method
if ($classMethod->isPrivate()) {
return false;
}

try {
$parentClassMethod = $this->resolveParentClassMethod($classMethod);

Expand Down

0 comments on commit 29562ce

Please sign in to comment.