A free open source IT asset/license management system
Switch to PHPv8.2-compatible way of invoking a constructor and a method
Brady Wetherington26c028cf37a9
diff --git a/app/Models/SnipeSCIMConfig.php b/app/Models/SnipeSCIMConfig.phpindex b7fcaf29e8..04ac76e80d 100644--- a/app/Models/SnipeSCIMConfig.php+++ b/app/Models/SnipeSCIMConfig.php@@ -204,7 +204,7 @@ class SnipeSCIMConfig})->withSubAttributes(eloquent('value', 'email')->ensure('email', 'nullable'), //Weird, this 'needs' nullable to work?new Constant('type', 'work'),- new Constant('primary', true)->ensure('boolean')+ (new Constant('primary', true))->ensure('boolean'))->ensure('array')->setMultiValued(true),@@ -263,7 +263,7 @@ class SnipeSCIMConfig}})->withSubAttributes( // TODO: I suspect these 'sub-attributes' aren't being checked at all- new Constant('value', 'email')->ensure('string'), // TODO - this is WRONG, but it works somehow? Probably because it's ignored+ (new Constant('value', 'email'))->ensure('string'), // TODO - this is WRONG, but it works somehow? Probably because it's ignorednew Constant('type', 'other'), // TODO uh, *also* wrong? but, again, seems to be ignored)->ensure('array')->setMultiValued(true),@@ -326,7 +326,7 @@ class SnipeSCIMConfigeloquent('postalCode', 'zip'),eloquent('country', 'country'),new Constant('type', 'other'),- new Constant('primary', true)->ensure('boolean')+ (new Constant('primary', true))->ensure('boolean'))->ensure('array')->setMultiValued(true),