Ver Fonte

Fix build

Jordi Boggiano há 3 anos atrás
pai
commit
6fdeea463c

+ 3 - 0
phpstan.neon.dist

@@ -8,6 +8,9 @@ parameters:
         - src/
 #        - tests/
 
+    excludePaths:
+        - 'src/Monolog/Handler/PHPConsoleHandler.php'
+
     ignoreErrors:
         - '#zend_monitor_|ZEND_MONITOR_#'
         - '#MongoDB\\(Client|Collection)#'

+ 2 - 1
tests/Monolog/Formatter/NormalizerFormatterTest.php

@@ -369,8 +369,9 @@ class NormalizerFormatterTest extends TestCase
         $record = ['context' => ['exception' => $e]];
         $result = $formatter->format($record);
 
+        $offset = PHP_VERSION_ID >= 80200 ? 12 : 10;
         $this->assertSame(
-            __FILE__.':'.(__LINE__-9),
+            __FILE__.':'.(__LINE__ - $offset),
             $result['context']['exception']['trace'][0]
         );
     }