Inspectopedia
 
2024.3

Deprecated 'assert()' function declaration

Error
New
Last modified: 03 December 2024

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.