Skip to content
This repository was archived by the owner on Apr 28, 2021. It is now read-only.

Commit 2e9bfab

Browse files
committed
Fixed TypErrors
1 parent c2b2e7b commit 2e9bfab

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Converters/PsalmJsonConverter.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,10 +80,10 @@ public function toInternal(string $source): SourceSuite
8080
*/
8181
private static function getDetails(Data $data): ?string
8282
{
83-
$snippet = trim($data->get('snippet'));
83+
$snippet = trim((string)$data->get('snippet'));
8484

8585
return Helper::descAsList([
86-
'' => htmlspecialchars_decode($data->get('message')),
86+
'' => htmlspecialchars_decode((string)$data->get('message')),
8787
'Rule' => $data->get('type'),
8888
'File Path' => self::getFilePoint($data->get('file_path'), $data->get('line_from')),
8989
'Snippet' => $snippet ? "`{$snippet}`" : null,

0 commit comments

Comments
 (0)