Skip to content

Conversation

@jrfnl
Copy link
Member

@jrfnl jrfnl commented Oct 25, 2025

…ons() $exclude_disabled (RFC)

> . The $exclude_disabled parameter of the get_defined_functions() function has
>   been deprecated, as it no longer has any effect since PHP 8.0.
>   RFC: https://wiki.php.net/rfc/deprecations_php_8_5#deprecate_the_exclude_disabled_parameter_of_get_defined_functions

This commit accounts for the parameter deprecation.

Includes adding a note to a closely related sniff to prevent confusion later.

Refs:
* https://wiki.php.net/rfc/deprecations_php_8_5#deprecate_the_exclude_disabled_parameter_of_get_defined_functions
* https://github.com/php/php-src/blob/1570ce9f551f7dff3f51690e5c03b0f5ae0e159f/UPGRADING#L367-L369
* php/php-src 19425
* php/php-src@94a15cc
* https://www.php.net/manual/en/function.get-defined-functions.php

Related to 1849
@jrfnl jrfnl added this to the 10.0.0-alpha2 milestone Oct 25, 2025
@jrfnl jrfnl requested a review from wimg October 25, 2025 23:13
@jrfnl jrfnl added enhancement PR: quick merge PR only contains relatively simple changes PR: ready for review labels Oct 25, 2025
@wimg wimg merged commit fe7dc52 into develop Oct 27, 2025
148 of 168 checks passed
@wimg wimg deleted the php-8.5/removedfunctionparam-getdefinedfunctions branch October 27, 2025 20:19
@github-actions github-actions bot removed PR: ready for review PR: quick merge PR only contains relatively simple changes labels Oct 27, 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.

2 participants