Skip to content

Commit aeeb541

Browse files
author
Pantea Marius-ciclistu
committed
1 parent b2fc146 commit aeeb541

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

illuminate/Database/Eloquent/Concerns/HasAttributes.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1878,7 +1878,7 @@ protected function normalizeCastClassResponse($key, $value)
18781878
*/
18791879
public function getAttributes()
18801880
{
1881-
if (true !== \func_get_arg(0)) {
1881+
if (true !== (\func_get_args()[0] ?? null)) {
18821882
$this->mergeAttributesFromCachedCasts();
18831883
}
18841884

0 commit comments

Comments
 (0)