Updated Rector to commit 03c7ab7a0f3b7a2ba106bef1ccf508d1b9b63850

03c7ab7a0f [TypeDeclaration] Skip default not array type on StrictArrayParamDimFetchRector (#5259)
This commit is contained in:
Tomas Votruba 2023-11-18 13:41:50 +00:00
parent 912487ba8d
commit 4cf16f617f
2 changed files with 6 additions and 2 deletions

View File

@ -4,6 +4,7 @@ declare (strict_types=1);
namespace Rector\TypeDeclaration\Rector\ClassMethod;
use PhpParser\Node;
use PhpParser\Node\Expr;
use PhpParser\Node\Expr\ArrayDimFetch;
use PhpParser\Node\Expr\AssignOp\Coalesce as AssignOpCoalesce;
use PhpParser\Node\Expr\BinaryOp\Coalesce;
@ -79,6 +80,9 @@ CODE_SAMPLE
if ($param->type instanceof Node) {
continue;
}
if ($param->default instanceof Expr && !$this->getType($param->default)->isArray()->yes()) {
continue;
}
if (!$this->isParamAccessedArrayDimFetch($param, $node)) {
continue;
}

View File

@ -19,12 +19,12 @@ final class VersionResolver
* @api
* @var string
*/
public const PACKAGE_VERSION = '4a3e6982647ce4fdc84b1232557eaeae7e914bde';
public const PACKAGE_VERSION = '03c7ab7a0f3b7a2ba106bef1ccf508d1b9b63850';
/**
* @api
* @var string
*/
public const RELEASE_DATE = '2023-11-18 09:17:20';
public const RELEASE_DATE = '2023-11-18 20:39:36';
/**
* @var int
*/