mirror of https://github.com/rectorphp/rector.git
Updated Rector to commit 9ce6af83b6996631fe2a13cca64d25142dc9fb15
9ce6af83b6
[Performance] Early skip NativeFunctionReflection on OptionalParametersAfterRequiredRector (#5836)
This commit is contained in:
parent
8aefc5e967
commit
1e8aeb3de9
|
@ -13,6 +13,7 @@ use PhpParser\Node\Stmt\Function_;
|
||||||
use PHPStan\Analyser\Scope;
|
use PHPStan\Analyser\Scope;
|
||||||
use PHPStan\Reflection\FunctionReflection;
|
use PHPStan\Reflection\FunctionReflection;
|
||||||
use PHPStan\Reflection\MethodReflection;
|
use PHPStan\Reflection\MethodReflection;
|
||||||
|
use PHPStan\Reflection\Native\NativeFunctionReflection;
|
||||||
use Rector\CodingStyle\Reflection\VendorLocationDetector;
|
use Rector\CodingStyle\Reflection\VendorLocationDetector;
|
||||||
use Rector\NodeTypeResolver\PHPStan\ParametersAcceptorSelectorVariantsWrapper;
|
use Rector\NodeTypeResolver\PHPStan\ParametersAcceptorSelectorVariantsWrapper;
|
||||||
use Rector\Php80\NodeResolver\ArgumentSorter;
|
use Rector\Php80\NodeResolver\ArgumentSorter;
|
||||||
|
@ -178,6 +179,9 @@ CODE_SAMPLE
|
||||||
*/
|
*/
|
||||||
private function resolveExpectedArgParamOrderIfDifferent($reflection, $node, Scope $scope) : ?array
|
private function resolveExpectedArgParamOrderIfDifferent($reflection, $node, Scope $scope) : ?array
|
||||||
{
|
{
|
||||||
|
if ($reflection instanceof NativeFunctionReflection) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
if ($reflection instanceof MethodReflection && $this->vendorLocationDetector->detectMethodReflection($reflection)) {
|
if ($reflection instanceof MethodReflection && $this->vendorLocationDetector->detectMethodReflection($reflection)) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
|
@ -19,12 +19,12 @@ final class VersionResolver
|
||||||
* @api
|
* @api
|
||||||
* @var string
|
* @var string
|
||||||
*/
|
*/
|
||||||
public const PACKAGE_VERSION = '1374e15d742f4f36f0bef45db9f8920a589865b3';
|
public const PACKAGE_VERSION = '9ce6af83b6996631fe2a13cca64d25142dc9fb15';
|
||||||
/**
|
/**
|
||||||
* @api
|
* @api
|
||||||
* @var string
|
* @var string
|
||||||
*/
|
*/
|
||||||
public const RELEASE_DATE = '2024-04-20 17:59:14';
|
public const RELEASE_DATE = '2024-04-20 19:22:19';
|
||||||
/**
|
/**
|
||||||
* @var int
|
* @var int
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Reference in New Issue