Skip to content

Commit

Permalink
Updated Rector to commit 697b37b340c3b4c73ad6f8e4cea26b7bf60ddf62
Browse files Browse the repository at this point in the history
rectorphp/rector-src@697b37b Around PHPStan 1.12.4 handling on ParametersAcceptors with non-native return type (by docblock) (#6341)
  • Loading branch information
TomasVotruba committed Oct 1, 2024
1 parent b86f338 commit cdbdb1b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,13 @@ public function resolveMethodCallReturnType($call) : ?Type
$returnType = $parametersAcceptorWithPhpDocs->getNativeReturnType();
} else {
$returnType = $parametersAcceptorWithPhpDocs->getReturnType();
// around PHPStan 1.12.4+ handling
if (\method_exists($parametersAcceptorWithPhpDocs, 'getNativeReturnType')) {
$nativeReturnType = $parametersAcceptorWithPhpDocs->getNativeReturnType();
if ($nativeReturnType instanceof MixedType && !$nativeReturnType->isExplicitMixed()) {
$returnType = $nativeReturnType;
}
}
}
if ($returnType instanceof MixedType) {
if ($returnType->isExplicitMixed()) {
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 = 'a11fc615d18396cef284c18de269711114630676';
public const PACKAGE_VERSION = '697b37b340c3b4c73ad6f8e4cea26b7bf60ddf62';
/**
* @api
* @var string
*/
public const RELEASE_DATE = '2024-10-01 16:53:21';
public const RELEASE_DATE = '2024-10-01 18:10:51';
/**
* @var int
*/
Expand Down

0 comments on commit cdbdb1b

Please # to comment.