mirror of
https://github.com/rectorphp/rector.git
synced 2025-03-13 20:12:07 +01:00
Updated Rector to commit d4af0ff3eb3ac59534a699a2c3c05e317a10b4d4
d4af0ff3eb
[CodeQuality] Handle crash division by zero error on ForeachItemsAssignToEmptyArrayToAssignRector (#6743)
This commit is contained in:
parent
78581c79f5
commit
29938fc39c
@ -19,12 +19,12 @@ final class VersionResolver
|
||||
* @api
|
||||
* @var string
|
||||
*/
|
||||
public const PACKAGE_VERSION = '0d86656f904c940d8573f4966e753ffb76e010c2';
|
||||
public const PACKAGE_VERSION = 'd4af0ff3eb3ac59534a699a2c3c05e317a10b4d4';
|
||||
/**
|
||||
* @api
|
||||
* @var string
|
||||
*/
|
||||
public const RELEASE_DATE = '2025-02-19 17:57:56';
|
||||
public const RELEASE_DATE = '2025-02-19 18:18:05';
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
|
@ -3,6 +3,7 @@
|
||||
declare (strict_types=1);
|
||||
namespace Rector\PhpParser\Node\Value;
|
||||
|
||||
use ArithmeticError;
|
||||
use PhpParser\ConstExprEvaluationException;
|
||||
use PhpParser\ConstExprEvaluator;
|
||||
use PhpParser\Node\Arg;
|
||||
@ -168,7 +169,7 @@ final class ValueResolver
|
||||
try {
|
||||
$constExprEvaluator = $this->getConstExprEvaluator();
|
||||
return $constExprEvaluator->evaluateDirectly($expr);
|
||||
} catch (ConstExprEvaluationException|TypeError $exception) {
|
||||
} catch (ConstExprEvaluationException|TypeError|ArithmeticError $exception) {
|
||||
}
|
||||
if ($expr instanceof Class_) {
|
||||
$type = $this->nodeTypeResolver->getNativeType($expr);
|
||||
|
Loading…
x
Reference in New Issue
Block a user