Deprecated 'assert()' function declaration
Reports the assert()
function declarations.
Declaring the
assert()
function is global namespace is forbidden.Starting from PHP 7.3, declaring the
assert()
function in non-global namespace is deprecated.
See assert (php.net) for details.
Inspection options
Option | Type | Default |
---|---|---|
PHP 7.3 Severity | Dropdown | Warning |
PHP 8 Severity | Dropdown | Error |
Inspection Details | |
---|---|
Available in: | PhpStorm 2023.3, Qodana for PHP 2023.3 |
Plugin: | PHP, 233.SNAPSHOT |
Last modified: 13 July 2023