Connehito / cake-sentry

CakePHP plugin integration for Sentry
MIT License
34 stars 26 forks source link

Cake 4.4 deprecation warning #74

Closed LordSimal closed 1 year ago

LordSimal commented 2 years ago
Use of `BaseErrorHandler` and subclasses are deprecated. Upgrade to the new `ErrorTrap` and `ExceptionTrap` subsystem. 
See https://book.cakephp.org/4/en/appendices/4-4-migration-guide.html
<my-path>/vendor/connehito/cake-sentry/config/bootstrap.php, line: 22
LordSimal commented 2 years ago

For all those who 👍🏻 the issue can you please try out my refactored version by adjusting your composer.json and add

"repositories": [
    {
        "type": "vcs",
        "url": "https://github.com/lordsimal/cake-sentry"
    }
],

and adjust the version string to

"connehito/cake-sentry": "dev-master",

then do a composer update -W and you should have my adjusted version running.

I haven't done extensive testing but the basic exception and error reporting should work without a warning.

LordSimal commented 1 year ago

Due to the fact that the repo maintaner isn't responding I created a new package which fixes this issue. See https://github.com/LordSimal/cakephp-sentry