Quellcode durchsuchen

Prevent Monolog from ever being introspected

Ensure the Monolog namespace is always ignored, and doesn't have to be defined in use.
Liam Le Brun vor 10 Jahren
Ursprung
Commit
09861e1e47
1 geänderte Dateien mit 2 neuen und 2 gelöschten Zeilen
  1. 2 2
      src/Monolog/Processor/IntrospectionProcessor.php

+ 2 - 2
src/Monolog/Processor/IntrospectionProcessor.php

@@ -30,10 +30,10 @@ class IntrospectionProcessor
 
     private $skipClassesPartials;
 
-    public function __construct($level = Logger::DEBUG, array $skipClassesPartials = array('Monolog\\'))
+    public function __construct($level = Logger::DEBUG, array $skipClassesPartials = [])
     {
         $this->level = Logger::toMonologLevel($level);
-        $this->skipClassesPartials = $skipClassesPartials;
+        $this->skipClassesPartials = array_merge(array['Monolog\\'], $skipClassesPartials);
     }
 
     /**