Skip to content

Commit 399a297

Browse files
authored
add stdClass as type
1 parent dbe8ded commit 399a297

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/TicketSwapErrorFormatter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ public static function highlight(string $message, ?string $tip, ?string $identif
245245

246246
// Types
247247
$message = (string) preg_replace(
248-
'/(?<=[\s\|\(><])(null|true|false|int|float|bool|([-\w]+-)?string|Stringable|array|object|mixed|resource|iterable|void|callable)(?=[:]{2}|[\.\s\|><,\(\)\{\}]+)/',
248+
'/(?<=[\s\|\(><])(null|true|false|int|float|bool|([-\w]+-)?string|Stringable|array|object|mixed|resource|iterable|void|callable|stdClass)(?=[:]{2}|[\.\s\|><,\(\)\{\}]+)/',
249249
'<fg=magenta>$1</>',
250250
$message,
251251
);

0 commit comments

Comments
 (0)