mirror of
https://github.com/rectorphp/rector.git
synced 2025-01-17 21:38:22 +01:00
Updated Rector to commit 36b475d84ae192f498854c796bd8246038a5bc7a
36b475d84a
[TypeDeclaration] Add ConstFetch support on ReturnTypeFromStrictConstantReturnRector (#6151)
This commit is contained in:
parent
2cbd10ab77
commit
427f73f6f7
@ -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);
|
||||
|
@ -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
|
||||
*/
|
||||
|
Loading…
x
Reference in New Issue
Block a user