Convert string references to ::class

PHP 5.5.9 adds the new static `class` property which provides the fully qualified class name. This is preferred over using strings for class names since the `class` property references are checked by PHP.
This commit is contained in:
Shift
2025-08-29 02:54:50 +00:00
parent ee7668df6f
commit 2b099b3156
+1 -1
View File
@@ -40,7 +40,7 @@ return [
*/
'components' => [
'spotlight' => [
'class' => 'App\Support\Spotlight',
'class' => App\Support\Spotlight::class,
],
],
];