Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
Naoray committed Dec 3, 2024
1 parent a9b44dd commit c5ef68d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Resources/AnyResource.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit c5ef68d

Please sign in to comment.