From c5ef68de858350fcc45eaf986d91150205d149f9 Mon Sep 17 00:00:00 2001 From: Krishan Koenig Date: Tue, 3 Dec 2024 12:34:51 +0100 Subject: [PATCH] wip --- src/Resources/AnyResource.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Resources/AnyResource.php b/src/Resources/AnyResource.php index 32fc79da..e8bae679 100644 --- a/src/Resources/AnyResource.php +++ b/src/Resources/AnyResource.php @@ -14,7 +14,10 @@ public function __get(string $name): mixed return Arr::get($this->attributes, $name); } - public function fill(array|stdClass $attributes): void + /** + * @param array|stdClass $attributes + */ + public function fill($attributes): void { $this->attributes = $attributes instanceof stdClass ? (array) $attributes : $attributes; }