Skip to content

Commit

Permalink
Apply phpcs
Browse files Browse the repository at this point in the history
  • Loading branch information
SerafimArts committed Nov 6, 2024
1 parent 5fa2335 commit 537fd0e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Compiler/PCRECompiler.php
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ protected function formatException(string $message, ?string $token = null): stri

$message = \str_replace('Compilation failed: ', '', $message);
$message = \preg_replace('/([\w_]+\(\):\h+)/', '', $message);
$message = \preg_replace('/\h*at\h+offset\h+\d+/', '', $message);
$message = \preg_replace('/\h*at\h+offset\h+\d+/', '', (string) $message);

return \ucfirst((string) $message) . (\is_string($token) ? $suffix : '');
}
Expand Down

0 comments on commit 537fd0e

Please sign in to comment.