Browse Source

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

Chance 2 years ago
parent
commit
0f6ed92fc3
1 changed files with 2 additions and 2 deletions
  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;
         }