suggestion to make a simpler condition avoiding null variable
if (!$found && !$sessionFiles[$this->formFieldName]) {
$checkFailed = $this->getCheckFailed();
}
|
if (!$found && count($sessionFiles[$this->formFieldName]) === 0) { |
TYPO3 8.7
Core: Error handler (FE): PHP Warning: count(): Parameter must be an array or an object that implements Countable in /sites/gazvacancy/htdocs/typo3conf/ext/formhandler/Classes/Validator/ErrorCheck/FileRequired.php line 35