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