Skip to content

14.12.1

Choose a tag to compare

@TomasVotruba TomasVotruba released this 24 Aug 18:40
· 66 commits to main since this release
15eccad

Rector rules

  • PhpUpgradeDowngradeRegisteredInSetRule — skip rules implementing Rector\Configuration\Deprecation\Contract\DeprecatedInterface. Deprecated rules are not registered in config sets, so they no longer trigger the "Register ... to phpXX.php config set" error.

  • NoIntegerRefactorReturnRule — also inspect a bare int refactor() return type (previously only Node|int union types were checked). NodeVisitor::REMOVE_NODE stays 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