| Subject |
Details |
| Plugin |
Php Inspections (EA Extended) V5.0.0.0 |
| Language level |
PHP 7.3, PHP 8.0+ |
| PhpStorm Version |
PhpStorm 2023.1 |
Current behaviour
Current behaviour highlights risk of using $_SERVER['HTTP_HOST'] and suggests whitelisting.
However, the code in place uses the exact whitelisting method as outlined in the linked documentation.

Syntax tweaks (such as explicitly adding ===true, etc. ) do not effect this issue highlighting.
Expected behaviour
Plugin should recognise when the code is fitting the expected syntax to mitigate the risk highlighted.
Information from Help - About dialog
Current behaviour
Current behaviour highlights risk of using
$_SERVER['HTTP_HOST']and suggests whitelisting.However, the code in place uses the exact whitelisting method as outlined in the linked documentation.
Syntax tweaks (such as explicitly adding
===true, etc. ) do not effect this issue highlighting.Expected behaviour
Plugin should recognise when the code is fitting the expected syntax to mitigate the risk highlighted.
Information from Help - About dialog