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

Commit

Permalink
Fixed TypErrors
Browse files Browse the repository at this point in the history
  • Loading branch information
SmetDenis committed Apr 23, 2021
1 parent c2b2e7b commit 2e9bfab
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Converters/PsalmJsonConverter.php
Expand Up @@ -80,10 +80,10 @@ public function toInternal(string $source): SourceSuite
*/
private static function getDetails(Data $data): ?string
{
$snippet = trim($data->get('snippet'));
$snippet = trim((string)$data->get('snippet'));

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

0 comments on commit 2e9bfab

Please sign in to comment.