diff --git a/src/src/LocalTests/PrepareQMLog.php b/src/src/LocalTests/PrepareQMLog.php index 60eb2cbc..32d818ee 100644 --- a/src/src/LocalTests/PrepareQMLog.php +++ b/src/src/LocalTests/PrepareQMLog.php @@ -114,7 +114,7 @@ public function extract_fatal_errors_from_debug_file( string $file_path ): array public function extract_error_info( array $lines ): array { $fatal_errors = []; foreach ( $lines as $line ) { - // First pattern: `on line X` + // First pattern: `on line X`. preg_match( '/PHP (Fatal|Parse) error: (.*?) in (.*?) on line (\d+)/', $line, @@ -135,7 +135,7 @@ public function extract_error_info( array $lines ): array { continue; } - // Second pattern: `in path:line` + // Second pattern: `in path:line`. preg_match( '/PHP (Fatal|Parse) error: (.*?) in (.*?):(\d+)/', $line,