Error files in Joomla 2.1.0 Quickstart.
Joomla 5.0.2
PHP 8.3.1
An error has occurred.
0 Joomla\CMS\Event\Model\DeleteEvent::onSetSubject(): Argument #1 ($value) must be of type object, array given, called in /home/peppy/public_html/libraries/src/Event/AbstractEvent.php on line 225
// Look for the method for the value pre-processing/validation
$ucfirst = ucfirst($name);
$methodName1 = 'onSet' . $ucfirst;
$methodName2 = 'set' . $ucfirst;
if (method_exists($this, $methodName1)) {
$value = $this->{$methodName1}($value);
} elseif (method_exists($this, $methodName2)) {
@trigger_error(
sprintf(
'Use method "%s" for value pre-processing is deprecated, and will not work in Joomla 6. Use "%s" instead. Event %s',
$methodName2,
$methodName1,
\get_class($this)
),
E_USER_DEPRECATED
);
$value = $this->{$methodName2}($value);
}
return parent::setArgument($name, $value);
}
Joomla 5.0.2
PHP 8.3.1