Skip to content

Commit 8ede14c

Browse files
committed
Update TableErrorFormatter.php
1 parent 1523bd5 commit 8ede14c

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/Command/ErrorFormatter/TableErrorFormatter.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,10 @@ public function formatErrors(
119119
$message .= "\n✏️ <href=" . OutputFormatter::escape($url) . '>' . $title . '</>';
120120
}
121121

122-
if (in_array($error->getIdentifier(), ['phpstan.type', 'phpstan.nativeType', 'phpstan.variable'], true)) {
122+
if (
123+
$error->getIdentifier() !== null
124+
&& in_array($error->getIdentifier(), ['phpstan.type', 'phpstan.nativeType', 'phpstan.variable'], true)
125+
) {
123126
$message = '<info>' . $message . '</info>';
124127
}
125128

0 commit comments

Comments
 (0)