# Changed `E_STRICT` Notices

> Section in “New and Extended Functionality › Error Handling” of the book [PHP 7 Explained](https://php7explained.com/) by Sebastian Bergmann and Stefan Priebsch, published by thePHP.cc. The book covers PHP 7.0 to 7.4 and was last updated in November 2020. HTML version: <https://php7explained.com/new-and-extended-functionality/error-handling/changed-e_strict-notices/>

Introduced with PHP 5, the `E_STRICT` notice was intended to have PHP suggest changes to code to ensure better interoperability and forward compatibility. It had to be explicitly enabled in the php.ini file. Enabling `E_STRICT` at runtime, using `error_reporting()`, did not help, because all `E_STRICT` errors were compile-time errors.

Starting with PHP 5.4, the `E_STRICT` flag was included in `E_ALL` to give it a higher visibility, yet most installations explicitly disabled it.

In PHP 7 all cases that used to trigger an `E_STRICT` notice got reclassified to other error types or were completely removed. For better compatibility the `E_STRICT` constant was kept but has no longer any effect or meaning.

---

Previous: [error_clear_last()](https://php7explained.com/new-and-extended-functionality/error-handling/error_clear_last/index.html.md) | Next: [__toString() and Exceptions](https://php7explained.com/new-and-extended-functionality/error-handling/tostring-and-exceptions/index.html.md)
