mirror of
https://github.com/rectorphp/rector.git
synced 2025-03-14 12:29:43 +01:00
Updated Rector to commit d9b64c78e33ef461605ac08578c8159b01839c98
d9b64c78e3
Fixes for ArrayDimFetchToMethodCallRector (#5727)
This commit is contained in:
parent
9ab2b8bc07
commit
d5d197b9bf
@ -46,12 +46,12 @@ CODE_SAMPLE
|
||||
if (!$node->var instanceof Variable) {
|
||||
return null;
|
||||
}
|
||||
if (!$node->dim instanceof Node) {
|
||||
return null;
|
||||
}
|
||||
foreach ($this->arrayDimFetchToMethodCalls as $arrayDimFetchToMethodCall) {
|
||||
if (!$node->dim instanceof Node) {
|
||||
return null;
|
||||
}
|
||||
if (!$this->isObjectType($node->var, new ObjectType($arrayDimFetchToMethodCall->getClass()))) {
|
||||
return null;
|
||||
continue;
|
||||
}
|
||||
return new MethodCall($node->var, $arrayDimFetchToMethodCall->getMethod(), [new Arg($node->dim)]);
|
||||
}
|
||||
|
@ -19,12 +19,12 @@ final class VersionResolver
|
||||
* @api
|
||||
* @var string
|
||||
*/
|
||||
public const PACKAGE_VERSION = 'd1ed5f03202cb9325f861ac7b8c1976173b45826';
|
||||
public const PACKAGE_VERSION = 'd9b64c78e33ef461605ac08578c8159b01839c98';
|
||||
/**
|
||||
* @api
|
||||
* @var string
|
||||
*/
|
||||
public const RELEASE_DATE = '2024-03-16 08:26:52';
|
||||
public const RELEASE_DATE = '2024-03-16 16:08:50';
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
|
Loading…
x
Reference in New Issue
Block a user