Fix PHP 8 compatibility for WCF::handleError()
authorTim Düsterhus <duesterhus@woltlab.com>
Sun, 28 Jun 2020 13:50:05 +0000 (15:50 +0200)
committerTim Düsterhus <duesterhus@woltlab.com>
Sun, 28 Jun 2020 13:50:05 +0000 (15:50 +0200)
commit0267fa9af7e18aa6449726f748e672cdac192d12
treeb92009fb2e29222668fe440910685eeaba1be1c4
parent30b80c59b976ff28599be6d85ce9438e2be7eef0
Fix PHP 8 compatibility for WCF::handleError()

Quoting from the UPGRADING manual (https://github.com/php/php-src/blob/php-8.0.0alpha1/UPGRADING):

> The @ operator will no longer silence fatal errors (E_ERROR, E_CORE_ERROR,
> E_COMPILE_ERROR, E_USER_ERROR, E_RECOVERABLE_ERROR, E_PARSE). Error handlers
> that expect error_reporting to be 0 when @ is used, should be adjusted to
> use a mask check instead:
wcfsetup/install/files/lib/system/WCF.class.php