magento-lts
magento-lts copied to clipboard
Fix issue #4501 Exception noise from OAuth and REST (API2 )
Description (*)
See issue #4501. This PR added $shouldLog as an optional parameter in Mage_APi2_Exception, any code that extends it and overrides the constructor with the old signature would break.
Related Pull Requests
- see OpenMage/magento-lts#<issue_number>
Fixed Issues (if relevant)
- fixes OpenMage/magento-lts#4501
Quality Gate passed
Issues
2 New issues
0 Accepted issues
Measures
0 Security Hotspots
0.0% Coverage on New Code
0.0% Duplication on New Code
any code that extends it and overrides the constructor with the old signature would break.
https://github.com/OpenMage/magento-lts/issues/4501#issuecomment-2606224769
How about to add _criticalNotLoggable() method and a new exception?
any code that extends it and overrides the constructor with the old signature would break.
How about to add
_criticalNotLoggable()method and a new exception?
I have thought about new exception class. I am hesitant because I do not think there is any custom code that would extend it, if there is, it's easy to fix. This avoid adding more code.
Quality Gate passed
Issues
0 New issues
0 Accepted issues
Measures
0 Security Hotspots
0.0% Coverage on New Code
0.0% Duplication on New Code
Already reviewed by @Hanmac .
This one has a PHPstan error. Did you check it?
All lights green here?
@addison74 there was an outdated PHPstan error, that got fixed with a later commit