Setting error reporting to none cause fatal error on PHP 8
When option error reporting level is set to none and PHP is >= 8 all fron and back-end views crash with fatal error:
0 error_reporting(): Argument #1 (closed) ($error_level) must be of type ?int, string given
Call stack | ||
---|---|---|
# | Function | Location |
1 | () | JROOT/components/com_sobipro/lib/ctrl/sobipro.php:110 |
2 | error_reporting() | JROOT/components/com_sobipro/lib/ctrl/sobipro.php:110 |
3 | SobiProCtrl->__construct() | JROOT/components/com_sobipro/sobipro.php:54 |
4 | require_once() | JROOT/libraries/src/Dispatcher/LegacyComponentDispatcher.php:71 |
5 | Joomla\CMS\Dispatcher\LegacyComponentDispatcher::Joomla\CMS\Dispatcher{closure}() | JROOT/libraries/src/Dispatcher/LegacyComponentDispatcher.php:73 |
6 | Joomla\CMS\Dispatcher\LegacyComponentDispatcher->dispatch() | JROOT/libraries/src/Component/ComponentHelper.php:361 |
7 | Joomla\CMS\Component\ComponentHelper::renderComponent() | JROOT/libraries/src/Application/SiteApplication.php:208 |
8 | Joomla\CMS\Application\SiteApplication->dispatch() | JROOT/libraries/src/Application/SiteApplication.php:249 |
9 | Joomla\CMS\Application\SiteApplication->doExecute() | JROOT/libraries/src/Application/CMSApplication.php:293 |
10 | Joomla\CMS\Application\CMSApplication->execute() | JROOT/includes/app.php:61 |
11 | require_once() | JROOT/index.php:32 |