mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-06-03 17:04:35 -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
|
* 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)) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user