function set($property, $value = null) { $previous = $this->$property ?? null; $this->$property = $value; return $previous; } /** * Set the object properties based on a named array/hash. * * @param mixed $properties Either an associative array or another object. * * @return boolean * * @since 1.7.0 * * @see CMSObject::set() * * @deprecated 4.3.0 will be removed in 6.0 * Create a proper setter function for the property */ public function setProperties($properties) { if (\is_array($properties) || \is_object($properties)) { foreach ((array) $properties as $k => $v) { // Use the set function which might be overridden. $this->set($k, $v); } return true; } return false; } }
Fatal error: Trait "Joomla\CMS\Object\LegacyPropertyManagementTrait" not found in /htdocs/libraries/src/User/User.php on line 36
An Error Occurred: Whoops, looks like something went wrong.

Sorry, there was a problem we could not recover from.

The server returned a "500 - Whoops, looks like something went wrong."

Help me resolve this