Explorar o código

analyse fix: Unsafe call to private method through static::

Chance %!s(int64=2) %!d(string=hai) anos
pai
achega
0f6ed92fc3
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      src/Worker.php

+ 2 - 2
src/Worker.php

@@ -1279,7 +1279,7 @@ class Worker
             }
             // change output stream
             static::$outputStream = null;
-            static::outputStream($STDOUT);
+            self::outputStream($STDOUT);
             restore_error_handler();
             return;
         }
@@ -2178,7 +2178,7 @@ class Worker
      */
     public static function safeEcho(string $msg, bool $decorated = false): bool
     {
-        $stream = static::outputStream();
+        $stream = self::outputStream();
         if (!$stream) {
             return false;
         }