Skip to content

Commit cf0056b

Browse files
authored
Use ::class instead of get_class
1 parent ecb4841 commit cf0056b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Models/Naming/Name.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ class Name
5454

5555
public static function forModel(object $model)
5656
{
57-
$class = get_class($model);
57+
$class = $model::class;
5858

5959
return static::$nameInstanceCache[$class] ??= static::build($class);
6060
}

0 commit comments

Comments
 (0)