Updated Drupal to 8.6. This goes with the following updates because it's possible...
[yaffs-website] / vendor / psy / psysh / src / Output / ProcOutputPager.php
index d8c030285562fe81c860812f894f825346275e13..a047b1c3f89958941c641a0a3ec7bfc8470393b1 100644 (file)
@@ -51,14 +51,14 @@ class ProcOutputPager extends StreamOutput implements OutputPager
     public function doWrite($message, $newline)
     {
         $pipe = $this->getPipe();
-        if (false === @fwrite($pipe, $message . ($newline ? PHP_EOL : ''))) {
+        if (false === @\fwrite($pipe, $message . ($newline ? PHP_EOL : ''))) {
             // @codeCoverageIgnoreStart
             // should never happen
             throw new \RuntimeException('Unable to write output');
             // @codeCoverageIgnoreEnd
         }
 
-        fflush($pipe);
+        \fflush($pipe);
     }
 
     /**
@@ -67,11 +67,11 @@ class ProcOutputPager extends StreamOutput implements OutputPager
     public function close()
     {
         if (isset($this->pipe)) {
-            fclose($this->pipe);
+            \fclose($this->pipe);
         }
 
         if (isset($this->proc)) {
-            $exit = proc_close($this->proc);
+            $exit = \proc_close($this->proc);
             if ($exit !== 0) {
                 throw new \RuntimeException('Error closing output stream');
             }
@@ -88,10 +88,10 @@ class ProcOutputPager extends StreamOutput implements OutputPager
     private function getPipe()
     {
         if (!isset($this->pipe) || !isset($this->proc)) {
-            $desc = [['pipe', 'r'], $this->stream, fopen('php://stderr', 'w')];
-            $this->proc = proc_open($this->cmd, $desc, $pipes);
+            $desc = [['pipe', 'r'], $this->stream, \fopen('php://stderr', 'w')];
+            $this->proc = \proc_open($this->cmd, $desc, $pipes);
 
-            if (!is_resource($this->proc)) {
+            if (!\is_resource($this->proc)) {
                 throw new \RuntimeException('Error opening output stream');
             }