diff --git a/src/Context/FeatureContext.php b/src/Context/FeatureContext.php index 4f3fdb7ba..8995330b8 100644 --- a/src/Context/FeatureContext.php +++ b/src/Context/FeatureContext.php @@ -769,7 +769,7 @@ public function afterScenario( AfterScenarioScope $scope ): void { */ private static function terminate_proc( $master_pid ): void { - $output = `ps -o ppid,pid,command | grep $master_pid`; + $output = shell_exec( "ps -o ppid,pid,command | grep $master_pid" ); foreach ( explode( PHP_EOL, $output ) as $line ) { if ( preg_match( '/^\s*(\d+)\s+(\d+)/', $line, $matches ) ) {