mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-06-03 14:14:36 -04:00
Fixes for tests
This commit is contained in:
parent
e5d5b9d25c
commit
d465fd3f2e
@ -812,7 +812,7 @@ 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
|
||||
*/
|
||||
@ -820,8 +820,6 @@ class CompanySettings extends BaseSettings
|
||||
{
|
||||
$company_settings = (object) get_class_vars(self::class);
|
||||
|
||||
$settings = new \stdClass;
|
||||
|
||||
foreach ($company_settings as $key => $value) {
|
||||
if (! property_exists($settings, $key)) {
|
||||
$settings->{$key} = self::castAttribute($key, $company_settings->{$key});
|
||||
|
Loading…
x
Reference in New Issue
Block a user