@@ -28,7 +28,7 @@ public function __construct(
2828 public bool $ allowRunningActualProcesses = false ,
2929 ) {}
3030
31- public function run (array | string |PendingProcess $ command ): ProcessResult
31+ public function run (string |PendingProcess $ command ): ProcessResult
3232 {
3333 if ($ result = $ this ->findMockedProcess ($ command )) {
3434 return $ this ->recordExecution ($ command , $ result );
@@ -41,7 +41,7 @@ public function run(array|string|PendingProcess $command): ProcessResult
4141 return $ this ->recordExecution ($ command , $ this ->start ($ command )->wait ());
4242 }
4343
44- public function start (array | string |PendingProcess $ command ): InvokedProcess
44+ public function start (string |PendingProcess $ command ): InvokedProcess
4545 {
4646 if ($ processResult = $ this ->findInvokedProcessDescription ($ command )) {
4747 $ this ->recordExecution ($ command , $ process = new InvokedTestingProcess ($ processResult ));
@@ -69,7 +69,7 @@ public function concurrently(iterable $pool): ProcessPoolResults
6969 return $ this ->pool ($ pool )->start ()->wait ();
7070 }
7171
72- private function findMockedProcess (array | string |PendingProcess $ command ): ?ProcessResult
72+ private function findMockedProcess (string |PendingProcess $ command ): ?ProcessResult
7373 {
7474 $ process = $ this ->createPendingProcess ($ command );
7575
@@ -92,7 +92,7 @@ private function findMockedProcess(array|string|PendingProcess $command): ?Proce
9292 return null ;
9393 }
9494
95- private function findInvokedProcessDescription (array | string |PendingProcess $ command ): ?InvokedProcessDescription
95+ private function findInvokedProcessDescription (string |PendingProcess $ command ): ?InvokedProcessDescription
9696 {
9797 $ process = $ this ->createPendingProcess ($ command );
9898
@@ -111,7 +111,7 @@ private function findInvokedProcessDescription(array|string|PendingProcess $comm
111111 return null ;
112112 }
113113
114- private function recordExecution (array | string |PendingProcess $ command , InvokedProcess |ProcessResult $ result ): ProcessResult
114+ private function recordExecution (string |PendingProcess $ command , InvokedProcess |ProcessResult $ result ): ProcessResult
115115 {
116116 $ process = $ this ->createPendingProcess ($ command );
117117 $ result = match (true ) {
0 commit comments