saving entries with empty select fields - now with PHP 8
Looks like there is similar issue as before:
https://code.sigsiu.net/Sigsiu.NET/SobiPro/-/issues/204
However now it happens only with PHP 8 and generate following error:
0 count(): Argument #1 ($value) must be of type Countable|array, null given
Call stack
# Function Location
1 () JROOT/components/com_sobipro/opt/fields/select.php:460
2 SPField_Select->fetchData() JROOT/components/com_sobipro/opt/fields/select.php:507
3 SPField_Select->submit() JROOT/components/com_sobipro/lib/models/field.php:892
4 SPField->__call() JROOT/components/com_sobipro/lib/ctrl/entry.php:249
5 SPEntryCtrl->submit() JROOT/components/com_sobipro/lib/ctrl/entry.php:73
6 SPEntryCtrl->execute() JROOT/components/com_sobipro/lib/ctrl/sobipro.php:574
7 SobiProCtrl->execute() JROOT/components/com_sobipro/sobipro.php:55
8 require_once() JROOT/libraries/src/Dispatcher/LegacyComponentDispatcher.php:69
9 Joomla\CMS\Dispatcher\LegacyComponentDispatcher::Joomla\CMS\Dispatcher\{closure}() JROOT/libraries/src/Dispatcher/LegacyComponentDispatcher.php:71
10 Joomla\CMS\Dispatcher\LegacyComponentDispatcher->dispatch() JROOT/libraries/src/Component/ComponentHelper.php:389
11 Joomla\CMS\Component\ComponentHelper::renderComponent() JROOT/libraries/src/Application/SiteApplication.php:206
12 Joomla\CMS\Application\SiteApplication->dispatch() JROOT/libraries/src/Application/SiteApplication.php:245
13 Joomla\CMS\Application\SiteApplication->doExecute() JROOT/libraries/src/Application/CMSApplication.php:278
14 Joomla\CMS\Application\CMSApplication->execute() JROOT/includes/app.php:63
15 require_once() JROOT/index.php:32
Tested with SobiPro 2.0.0.15