Skip to content

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
@wimg wimg deleted the php-8.3/new-removedgetclassnoargs-sniff branch August 10, 2023 20:35
@jrfnl jrfnl added the PHP: 8.3 label Nov 4, 2025
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.

3 participants