Skip to content

Commit 5136ebe

Browse files
author
Kirill Nesmeyanov
committed
Revert back reason phrase
1 parent 6be74fb commit 5136ebe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/Functional/LinterStubs/LinterStubsTestCase.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ protected static function getReasonPhrase(TagInterface $tag): string
243243
if ($tag instanceof InvalidTag) {
244244
$reason = $tag->getReason();
245245

246-
return (string) $reason . ': ' . (string) $tag->getDescription();
246+
return $reason->getMessage() . ': ' . (string) $tag->getDescription();
247247
}
248248

249249
return 'Failed to parse tag: ' . \print_r($tag, true);

0 commit comments

Comments
 (0)