PHP 7.2.0 deprecated the 5th parameter and PHP 8 removed it, so stop
using it and provide a default value to avoid erroring with:
Too few arguments to function PhutilErrorHandler::handleError(), 4 passed and exactly 5 expected
Differential D21498
Fix error handler on PHP 8 jrtc27 on Jan 10 2021, 9:54 PM. Authored by Tags None Referenced Files
Subscribers
Details
PHP 7.2.0 deprecated the 5th parameter and PHP 8 removed it, so stop Too few arguments to function PhutilErrorHandler::handleError(), 4 passed and exactly 5 expected Used to create this revision with PHP 8 on macOS
Diff Detail
Event TimelineComment Actions It's possible that third party code which installs custom error listeners via setErrorListener() that expect 'context' to be populated may exist, I'm not aware of any such code and think it probably does not exist. It would also be easy to update any such code in response to this change, so I think it's not worth retaining backward compatibility with a dummy parameter and that this is the most-desirable version of this change. |