Repository navigation
Bugfixes 🐛
-
[CodeQuality] Remove
NarrowPreviousExceptionCodeArgRector, as it changesgetCode()of new exception to0(#9062), reported in #9061PHP does not inherit the code from the previous exception, so
new X('msg', previous: $e)returns0fromgetCode(), not$e->getCode(). The rule was part of thenamed-argsset and code quality level in 2.9.0. If you registered it manually, remove it from your config. -
[CodeQuality] Restore adding code with named
previous:argument inThrowWithPreviousExceptionRector(#9063)