@@ -146,7 +146,7 @@ protected function env(): array
146146 protected function launchProcess (): void
147147 {
148148 try {
149- if (! $ this ->process instanceof \ Symfony \ Component \ Process \ Process) {
149+ if (! $ this ->process instanceof Process) {
150150 throw new TransportException ('Process not initialized ' );
151151 }
152152
@@ -165,7 +165,7 @@ protected function launchProcess(): void
165165 protected function verifyProcessStarted (): void
166166 {
167167 if (! $ this ->isProcessRunning ()) {
168- if (! $ this ->process instanceof \ Symfony \ Component \ Process \ Process) {
168+ if (! $ this ->process instanceof Process) {
169169 throw new TransportException ('Process not initialized ' );
170170 }
171171
@@ -194,7 +194,7 @@ protected function cleanup(): void
194194
195195 protected function sendPingRequest (): void
196196 {
197- if (! $ this ->inputStream instanceof \ Symfony \ Component \ Process \ InputStream) {
197+ if (! $ this ->inputStream instanceof InputStream) {
198198 throw new TransportException ('Input stream not initialized ' );
199199 }
200200
@@ -242,7 +242,7 @@ protected function ensureProcessIsRunning(): void
242242 */
243243 protected function prepareRequest (string $ method , array $ params = []): void
244244 {
245- if (! $ this ->inputStream instanceof \ Symfony \ Component \ Process \ InputStream || ! $ this ->process instanceof \ Symfony \ Component \ Process \ Process) {
245+ if (! $ this ->inputStream instanceof InputStream || ! $ this ->process instanceof Process) {
246246 throw new TransportException ('Transport not properly initialized ' );
247247 }
248248
@@ -274,7 +274,7 @@ protected function prepareRequest(string $method, array $params = []): void
274274 */
275275 protected function waitForResponse (): array
276276 {
277- if (! $ this ->process instanceof \ Symfony \ Component \ Process \ Process) {
277+ if (! $ this ->process instanceof Process) {
278278 throw new TransportException ('Process not initialized ' );
279279 }
280280
@@ -433,7 +433,7 @@ protected function handleJsonRpcError(array $error): void
433433 protected function handleResponseTimeout (string $ responseBuffer , int $ timeout ): array
434434 {
435435 if (! $ this ->isProcessRunning ()) {
436- if (! $ this ->process instanceof \ Symfony \ Component \ Process \ Process) {
436+ if (! $ this ->process instanceof Process) {
437437 throw new TransportException ('Process terminated unexpectedly and is no longer available ' );
438438 }
439439
@@ -456,7 +456,7 @@ protected function handleResponseTimeout(string $responseBuffer, int $timeout):
456456
457457 protected function closeInputStream (): void
458458 {
459- if ($ this ->inputStream instanceof \ Symfony \ Component \ Process \ InputStream) {
459+ if ($ this ->inputStream instanceof InputStream) {
460460 $ this ->inputStream ->close ();
461461 $ this ->inputStream = null ;
462462 }
0 commit comments