mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-05-24 02:14:21 -04:00
Fixes for tests
This commit is contained in:
parent
e5d5b9d25c
commit
d465fd3f2e
@ -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)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user