A free open source IT asset/license management system
Add return types and docblock
Marcus Moore9561b6661389
diff --git a/tests/Support/Settings.php b/tests/Support/Settings.phpindex e0b9970544..5061c461d0 100644--- a/tests/Support/Settings.php+++ b/tests/Support/Settings.php@@ -7,28 +7,31 @@ use App\Models\Setting;class Settings{private Setting $setting;-+private function __construct(){$this->setting = Setting::factory()->create();}- public static function initialize()+ public static function initialize(): Settings{return new self();}- public function enableMultipleFullCompanySupport()+ public function enableMultipleFullCompanySupport(): void{$this->update(['full_multiple_companies_support' => 1]);}- public function set(array $attributes)+ /**+ * @param array $attributes Attributes to modify in the application's settings.+ */+ public function set(array $attributes): void{$this->update($attributes);}- private function update(array $attributes)+ private function update(array $attributes): void{Setting::unguarded(fn() => $this->setting->update($attributes));Setting::$_cache = null;