Skip to content

Commit

Permalink
PHPCS
Browse files Browse the repository at this point in the history
  • Loading branch information
Luc45 committed Jan 10, 2025
1 parent 07452dd commit 4b3712f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/src/LocalTests/PrepareQMLog.php
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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,
Expand Down

0 comments on commit 4b3712f

Please sign in to comment.