mirror of
https://github.com/rectorphp/rector.git
synced 2024-06-15 15:42:22 +00:00
Updated Rector to commit 7574abd469cbfe569dd47dd9ae9e6aa668a0cf1b
7574abd469
[Php81] Skip mixed type on ArrayDimFetch on NullToStrictStringFuncCallArgRector (#5826)
This commit is contained in:
parent
4f94d24171
commit
b7b08c4396
|
@ -6,6 +6,7 @@ namespace Rector\Php81\Rector\FuncCall;
|
||||||
use PhpParser\Node;
|
use PhpParser\Node;
|
||||||
use PhpParser\Node\Arg;
|
use PhpParser\Node\Arg;
|
||||||
use PhpParser\Node\Expr;
|
use PhpParser\Node\Expr;
|
||||||
|
use PhpParser\Node\Expr\ArrayDimFetch;
|
||||||
use PhpParser\Node\Expr\Cast\String_ as CastString_;
|
use PhpParser\Node\Expr\Cast\String_ as CastString_;
|
||||||
use PhpParser\Node\Expr\ConstFetch;
|
use PhpParser\Node\Expr\ConstFetch;
|
||||||
use PhpParser\Node\Expr\FuncCall;
|
use PhpParser\Node\Expr\FuncCall;
|
||||||
|
@ -185,6 +186,9 @@ CODE_SAMPLE
|
||||||
if ($this->shouldSkipTrait($argValue, $type, $isTrait)) {
|
if ($this->shouldSkipTrait($argValue, $type, $isTrait)) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
if ($type instanceof MixedType && $args[$position]->value instanceof ArrayDimFetch) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
$args[$position]->value = new CastString_($argValue);
|
$args[$position]->value = new CastString_($argValue);
|
||||||
$funcCall->args = $args;
|
$funcCall->args = $args;
|
||||||
return $funcCall;
|
return $funcCall;
|
||||||
|
|
|
@ -19,12 +19,12 @@ final class VersionResolver
|
||||||
* @api
|
* @api
|
||||||
* @var string
|
* @var string
|
||||||
*/
|
*/
|
||||||
public const PACKAGE_VERSION = '18f482fad0993dbf0b55c628557297610256d87d';
|
public const PACKAGE_VERSION = '7574abd469cbfe569dd47dd9ae9e6aa668a0cf1b';
|
||||||
/**
|
/**
|
||||||
* @api
|
* @api
|
||||||
* @var string
|
* @var string
|
||||||
*/
|
*/
|
||||||
public const RELEASE_DATE = '2024-04-17 09:13:11';
|
public const RELEASE_DATE = '2024-04-17 16:27:51';
|
||||||
/**
|
/**
|
||||||
* @var int
|
* @var int
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Reference in New Issue
Block a user