mirror of
https://github.com/getgrav/grav.git
synced 2026-05-06 15:06:06 +02:00
Fix whoami command usage (#3695)
Passing process as a string is deprecated since Symfony 4.2.
This commit is contained in:
@@ -357,7 +357,7 @@ class Scheduler
|
||||
*/
|
||||
public function whoami()
|
||||
{
|
||||
$process = new Process('whoami');
|
||||
$process = new Process(['whoami']);
|
||||
$process->run();
|
||||
|
||||
if ($process->isSuccessful()) {
|
||||
|
||||
Reference in New Issue
Block a user