Fix whoami command usage (#3695)

Passing process as a string is deprecated since Symfony 4.2.
This commit is contained in:
Vilius Šumskas 2023-03-06 19:19:23 +02:00 committed by GitHub
parent 0ae980062f
commit 259c148edb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -357,7 +357,7 @@ class Scheduler
*/
public function whoami()
{
$process = new Process('whoami');
$process = new Process(['whoami']);
$process->run();
if ($process->isSuccessful()) {