We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DowngradeStringableInterfaceRector
PHP 8 added the \Stringable interface.
\Stringable
Downgrade rule implementation would include:
implements \Stringable
$a instanceof \Stringable
method_exists($a, '__toString')
Refs:
Perhaps a "feature" label can be added to this issue.
The text was updated successfully, but these errors were encountered:
For remove implements Stringable, it actually already applied by configurable RemoveInterfacesRector
implements Stringable
RemoveInterfacesRector
rector-downgrade-php/config/set/downgrade-php80.php
Lines 44 to 48 in 4228a73
Ref https://getrector.com/demo/47d27225-1e6b-4855-91d5-9d6c4a1c4a14
The instanceof Stringable check is that what we need, as currently still not applied
Ref https://getrector.com/demo/d29a298b-8bbc-467c-ae35-9e2c91163b9d
Sorry, something went wrong.
No branches or pull requests
PHP 8 added the
\Stringable
interface.Downgrade rule implementation would include:
implements \Stringable
from classes.$a instanceof \Stringable
to something likemethod_exists($a, '__toString')
Refs:
Perhaps a "feature" label can be added to this issue.
The text was updated successfully, but these errors were encountered: