Skip to content
New issue

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

PHP 8.3 | ✨ New PHPCompatibility.ParameterValues.RemovedGetClassNoArgs sniff (RFC) #1614

Merged
merged 1 commit into from
Aug 10, 2023

Conversation

jrfnl
Copy link
Member

@jrfnl jrfnl commented Aug 10, 2023

This PR is part of a series to address the "Deprecate functions with overloaded signatures" RFC.

. Calling get_class() and get_parent_class() without arguments is now
deprecated.

Refs:

This adds a new sniff to detect the above.

Includes tests and documentation.

Related to #1589

…gs` sniff (RFC)

This PR is part of a series to address the "Deprecate functions with overloaded signatures" RFC.

>   . Calling get_class() and get_parent_class() without arguments is now
>     deprecated.

Refs:
* https://wiki.php.net/rfc/deprecate_functions_with_overloaded_signatures#get_class_and_get_parent_class
* https://github.com/php/php-src/blob/655f116be57b46efe32221d7adfec6d6b81eeece/UPGRADING#L131-L132
* php/php-src 11703
* php/php-src@1126232

This adds a new sniff to detect the above.

Includes tests and documentation.

Related to 1589
@wimg wimg merged commit f7c9612 into develop Aug 10, 2023
43 checks passed
@wimg wimg deleted the php-8.3/new-removedgetclassnoargs-sniff branch August 10, 2023 20:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants