mirror of
https://github.com/rectorphp/rector.git
synced 2025-01-29 11:33:33 +01:00
Updated Rector to commit 324bf249b01745819521490f3066f3a51a8f6249
324bf249b0
[PHPStan] Docblock fix on LocalMethodCallFinder::match() (#5961)
This commit is contained in:
parent
66d6637cdd
commit
e952e0ba80
@ -19,12 +19,12 @@ final class VersionResolver
|
||||
* @api
|
||||
* @var string
|
||||
*/
|
||||
public const PACKAGE_VERSION = '297853b887236d6770547058d0727a228385f87d';
|
||||
public const PACKAGE_VERSION = '324bf249b01745819521490f3066f3a51a8f6249';
|
||||
/**
|
||||
* @api
|
||||
* @var string
|
||||
*/
|
||||
public const RELEASE_DATE = '2024-06-11 16:32:25';
|
||||
public const RELEASE_DATE = '2024-06-11 16:37:24';
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
|
@ -36,7 +36,7 @@ final class LocalMethodCallFinder
|
||||
$this->nodeNameResolver = $nodeNameResolver;
|
||||
}
|
||||
/**
|
||||
* @return MethodCall[]
|
||||
* @return MethodCall[]|StaticCall[]
|
||||
*/
|
||||
public function match(Class_ $class, ClassMethod $classMethod) : array
|
||||
{
|
||||
@ -45,7 +45,7 @@ final class LocalMethodCallFinder
|
||||
return [];
|
||||
}
|
||||
$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 {
|
||||
if (!$subNode instanceof MethodCall && !$subNode instanceof StaticCall) {
|
||||
return \false;
|
||||
|
Loading…
x
Reference in New Issue
Block a user