Always prefer ::class notation

This commit is contained in:
Lucas Michot committed 2024-10-28 14:56:13 +01:00
1 parent 94e73c6d8b
commit c5403b0b3f
31 files changed
+99 -99

No files matched your search

+1 -1
View File
@@ -22,7 +22,7 @@ class StopDatabaseProxy
{
$server = data_get($database, 'destination.server');
$uuid = $database->uuid;
if ($database->getMorphClass() === 'App\Models\ServiceDatabase') {
if ($database->getMorphClass() === \App\Models\ServiceDatabase::class) {
$uuid = $database->service->uuid;
$server = data_get($database, 'service.server');
}