Skip to content

PHP 8.0: New PHPCompatibility.ParameterValues.RemovedGetDefinedFunctionsExcludeDisabledFalse sniff#1150

Merged
wimg merged 1 commit intodevelopfrom
php-8.0/new-removedgetdefinedfunctionsexcludedisabledfalse-sniff
Jul 11, 2020
Merged

PHP 8.0: New PHPCompatibility.ParameterValues.RemovedGetDefinedFunctionsExcludeDisabledFalse sniff#1150
wimg merged 1 commit intodevelopfrom
php-8.0/new-removedgetdefinedfunctionsexcludedisabledfalse-sniff

Conversation

@jrfnl
Copy link
Member

@jrfnl jrfnl commented Jun 29, 2020

Calling get_defined_functions() with $exclude_disabled explicitly set to
false is deprecated. get_defined_functions() will never include disabled functions.

Refs:

This sniff addresses that change.

Includes unit tests.

Related to #809

…ctionsExcludeDisabledFalse` sniff

> Calling `get_defined_functions()` with `$exclude_disabled` explicitly set to
>  `false` is deprecated. `get_defined_functions()` will never include disabled functions.

Refs:
* https://github.com/php/php-src/blob/69888c3ff1f2301ead8e37b23ff8481d475e29d2/UPGRADING#L514-L516
* php/php-src#5473
* php/php-src@53eee29

This sniff addresses that change.

Includes unit tests.
@wimg wimg merged commit ca38484 into develop Jul 11, 2020
@wimg wimg deleted the php-8.0/new-removedgetdefinedfunctionsexcludedisabledfalse-sniff branch July 11, 2020 21:16
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