Updated Rector to commit 36b475d84ae192f498854c796bd8246038a5bc7a

36b475d84a [TypeDeclaration] Add ConstFetch support on ReturnTypeFromStrictConstantReturnRector (#6151)
This commit is contained in:
Tomas Votruba 2024-07-15 22:01:05 +00:00
parent 2cbd10ab77
commit 427f73f6f7
2 changed files with 4 additions and 3 deletions

View File

@ -5,6 +5,7 @@ namespace Rector\TypeDeclaration\Rector\ClassMethod;
use PhpParser\Node;
use PhpParser\Node\Expr\ClassConstFetch;
use PhpParser\Node\Expr\ConstFetch;
use PhpParser\Node\Expr\Yield_;
use PhpParser\Node\Expr\YieldFrom;
use PhpParser\Node\Stmt\ClassMethod;
@ -137,7 +138,7 @@ CODE_SAMPLE
{
$classConstFetchTypes = [];
foreach ($returns as $return) {
if (!$return->expr instanceof ClassConstFetch) {
if (!$return->expr instanceof ClassConstFetch && !$return->expr instanceof ConstFetch) {
return null;
}
$classConstFetchTypes[] = $this->nodeTypeResolver->getType($return->expr);

View File

@ -19,12 +19,12 @@ final class VersionResolver
* @api
* @var string
*/
public const PACKAGE_VERSION = 'd6de24c449d21207b50bd5342e3ddc0836a9265b';
public const PACKAGE_VERSION = '36b475d84ae192f498854c796bd8246038a5bc7a';
/**
* @api
* @var string
*/
public const RELEASE_DATE = '2024-07-16 00:34:42';
public const RELEASE_DATE = '2024-07-15 23:58:42';
/**
* @var int
*/