themosis / framework

The Themosis framework core.
https://framework.themosis.com/
GNU General Public License v2.0
670 stars 121 forks source link

Themosis throws ErrorException for deprecations #880

Closed reneroboter closed 1 year ago

reneroboter commented 1 year ago

Description

I use a third-party WordPress plugins from Yoast which has still deprecation warnings. Themosis throw a ErrorException for deprecation warnings when debugging is enabled. The reason is the custom registered error handler at Themosis\Core\Bootstrap. The handleError method doesn't consider custom error_reporting levels.

Steps to reproduce

Expected behavior

Further informations

jlambe commented 1 year ago

@reneroboter Thanks for reporting this issue. I haven't yet a fix ready for you but a solution is on its way where we can filter out deprecations from the handleError method.

My only recommandation for now is to turn off direct reporting by setting the APP_DEBUG variable to false. Errors are still logged in the storage/logs directory but at least you won't be annoyed by error exception rendering.

jlambe commented 1 year ago

@reneroboter Deprecations support is now merged into the 3.0 branch. It's going to be released very soon.