Skip to content

Commit 8899de9

Browse files
author
Pantea Marius-ciclistu
committed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Models/BaseModel.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -570,7 +570,7 @@ public function unique($key = null, $strict = false): Collection
570570
*/
571571
public function getAttributes(): array
572572
{
573-
if (true !== \func_get_arg(0)) {
573+
if (true !== (\func_get_args()[0] ?? null)) {
574574
$this->mergeAttributesFromCachedCasts();
575575
}
576576

0 commit comments

Comments
 (0)