Skip to content
This repository was archived by the owner on Feb 14, 2023. It is now read-only.

Commit bee8a6f

Browse files
committed
Fix PHP 7.4
1 parent 9902fab commit bee8a6f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Support/JsonApi.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,6 @@ public static function getResourceType($model)
4040
return $model->resourceType();
4141
}
4242

43-
return Str::snake(class_basename(is_string($model) ? $model : $model::class));
43+
return Str::snake(class_basename(is_string($model) ? $model : get_class($model)));
4444
}
4545
}

0 commit comments

Comments
 (0)