Repository navigation
14.12.1
Rector rules
-
PhpUpgradeDowngradeRegisteredInSetRule— skip rules implementingRector\Configuration\Deprecation\Contract\DeprecatedInterface. Deprecated rules are not registered in config sets, so they no longer trigger the "Register ... tophpXX.phpconfig set" error. -
NoIntegerRefactorReturnRule— also inspect a bareintrefactor()return type (previously onlyNode|intunion types were checked).NodeVisitor::REMOVE_NODEstays allowed.
// now reported — was silently skipped before
public function refactor(Node $node): int
{
return NodeVisitor::DONT_TRAVERSE_CHILDREN;
}
// allowed
public function refactor(Node $node): int
{
return NodeVisitor::REMOVE_NODE;
}Full changelog: 14.12.0...14.12.1