Skip to content

Commit

Permalink
Updated Rector to commit 0c9edebe4e1ca753d5bbe99e5109378155e87dde
Browse files Browse the repository at this point in the history
rectorphp/rector-src@0c9edeb [TypeDeclaration] Add NativeMethodReflection support on ReturnStrictTypeAnalyzer (#6344)
  • Loading branch information
TomasVotruba committed Oct 1, 2024
1 parent b555bd2 commit a3f6293
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
use PHPStan\Analyser\Scope;
use PHPStan\Reflection\ClassReflection;
use PHPStan\Reflection\Native\NativeFunctionReflection;
use PHPStan\Reflection\Native\NativeMethodReflection;
use PHPStan\Reflection\ParametersAcceptorWithPhpDocs;
use PHPStan\Type\MixedType;
use PHPStan\Type\StaticType;
Expand Down Expand Up @@ -117,7 +118,7 @@ public function resolveMethodCallReturnType($call) : ?Type
return null;
}
$parametersAcceptorWithPhpDocs = ParametersAcceptorSelectorVariantsWrapper::select($methodReflection, $call, $scope);
if ($methodReflection instanceof NativeFunctionReflection) {
if ($methodReflection instanceof NativeFunctionReflection || $methodReflection instanceof NativeMethodReflection) {
$returnType = $parametersAcceptorWithPhpDocs->getReturnType();
} elseif ($parametersAcceptorWithPhpDocs instanceof ParametersAcceptorWithPhpDocs) {
// native return type is needed, as docblock can be false
Expand Down
4 changes: 2 additions & 2 deletions src/Application/VersionResolver.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@ final class VersionResolver
* @api
* @var string
*/
public const PACKAGE_VERSION = 'd17d3e814eada2fa3ada3601034407df01d84568';
public const PACKAGE_VERSION = '0c9edebe4e1ca753d5bbe99e5109378155e87dde';
/**
* @api
* @var string
*/
public const RELEASE_DATE = '2024-10-01 20:02:39';
public const RELEASE_DATE = '2024-10-01 20:52:27';
/**
* @var int
*/
Expand Down

0 comments on commit a3f6293

Please sign in to comment.