rector-downgrade-php
rector-downgrade-php copied to clipboard
Rector downgrade rules for PHP
PHP 8 added the `\Stringable` interface. Downgrade rule implementation would include: - Removal of `implements \Stringable` from classes. - Replacement of the expression `$a instanceof \Stringable` to something like `method_exists($a,...
Question 1: this project's content is one part of `rectorphp/rector` project at before. split it make every project simple and clear. It's right? Question 2: about https://github.com/rectorphp/rector/issues/6079 why some content...
Looks like code like this ``` try { match ($age) { 1, 2 => foo(), 3, 4 => bar(), }; } catch (\UnhandledMatchError $e) { var_dump($e); } ``` is currently...
In all three cases, the problem existed because some functions did not actually change nodes in a way that would result in a code change, they just added attributes to...