Fixes for tests

This commit is contained in:
David Bomba 2023-08-11 17:14:54 +10:00
parent e5d5b9d25c
commit d465fd3f2e

View File

@ -812,15 +812,13 @@ class CompanySettings extends BaseSettings
* need to provide a fallback catch on old settings objects which will
* set new properties to the object prior to being returned.
*
* @param $settings
* @param \stdClass $settings
*
* @return stdClass
*/
public static function setProperties($settings): stdClass
{
$company_settings = (object) get_class_vars(self::class);
$settings = new \stdClass;
foreach ($company_settings as $key => $value) {
if (! property_exists($settings, $key)) {