Fix deprecation in backend DB seeder

The "${var}" variable format inside strings is deprecated as of PHP 8.2.
This commit is contained in:
Ben Thomson 2023-08-25 08:21:11 +08:00 committed by GitHub
parent 5a2e397348
commit 6c074473d3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -26,7 +26,8 @@ class DatabaseSeeder extends Seeder
$this->call($adminSeeder);
});
return $shouldRandomizePassword ? 'The following password has been automatically generated for the "admin" account: '
. "<fg=yellow;options=bold>${adminPassword}</>" : '';
return ($shouldRandomizePassword)
? 'The following password has been automatically generated for the "admin" account: <fg=yellow;options=bold>' . $adminPassword . '</>'
: '';
}
}