Updated Rector to commit 324bf249b01745819521490f3066f3a51a8f6249

324bf249b0 [PHPStan] Docblock fix on LocalMethodCallFinder::match() (#5961)
This commit is contained in:
Tomas Votruba 2024-06-11 09:40:47 +00:00
parent 66d6637cdd
commit e952e0ba80
2 changed files with 4 additions and 4 deletions

View File

@ -19,12 +19,12 @@ final class VersionResolver
* @api * @api
* @var string * @var string
*/ */
public const PACKAGE_VERSION = '297853b887236d6770547058d0727a228385f87d'; public const PACKAGE_VERSION = '324bf249b01745819521490f3066f3a51a8f6249';
/** /**
* @api * @api
* @var string * @var string
*/ */
public const RELEASE_DATE = '2024-06-11 16:32:25'; public const RELEASE_DATE = '2024-06-11 16:37:24';
/** /**
* @var int * @var int
*/ */

View File

@ -36,7 +36,7 @@ final class LocalMethodCallFinder
$this->nodeNameResolver = $nodeNameResolver; $this->nodeNameResolver = $nodeNameResolver;
} }
/** /**
* @return MethodCall[] * @return MethodCall[]|StaticCall[]
*/ */
public function match(Class_ $class, ClassMethod $classMethod) : array public function match(Class_ $class, ClassMethod $classMethod) : array
{ {
@ -45,7 +45,7 @@ final class LocalMethodCallFinder
return []; return [];
} }
$classMethodName = $this->nodeNameResolver->getName($classMethod); $classMethodName = $this->nodeNameResolver->getName($classMethod);
/** @var MethodCall[] $matchingMethodCalls */ /** @var MethodCall[]|StaticCall[] $matchingMethodCalls */
$matchingMethodCalls = $this->betterNodeFinder->find($class->getMethods(), function (Node $subNode) use($className, $classMethodName) : bool { $matchingMethodCalls = $this->betterNodeFinder->find($class->getMethods(), function (Node $subNode) use($className, $classMethodName) : bool {
if (!$subNode instanceof MethodCall && !$subNode instanceof StaticCall) { if (!$subNode instanceof MethodCall && !$subNode instanceof StaticCall) {
return \false; return \false;