Skip to content

Conversation

@jrfnl
Copy link
Member

@jrfnl jrfnl commented Oct 25, 2025

… sniff (RFC)

... to facilitate detection of the PHP 8.5 deprecated backtick operator:

> . The backtick operator as an alias for shell_exec() has been deprecated.
>   RFC: https://wiki.php.net/rfc/deprecations_php_8_5#deprecate_backticks_as_an_alias_for_shell_exec

This commit introduces a new `RemovedLanguageConstruct` sniff to detect this deprecation and allow for other language constructs to be deprecated/removed in the future.

Refs:
* https://wiki.php.net/rfc/deprecations_php_8_5#deprecate_backticks_as_an_alias_for_shell_exec
* https://github.com/php/php-src/blob/1570ce9f551f7dff3f51690e5c03b0f5ae0e159f/UPGRADING#L373
* php/php-src 19443
* php/php-src@3d9d68e

Related to 1849
@wimg wimg merged commit 9753d39 into develop Oct 27, 2025
76 checks passed
@wimg wimg deleted the php-8.5/new-removedlanguageconstructs-sniff branch October 27, 2025 20:33
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