Skip to content

Commit

Permalink
Fix psalm inspections
Browse files Browse the repository at this point in the history
  • Loading branch information
mpkorstanje committed Mar 17, 2024
1 parent 2aa61ec commit 5d8eb96
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion php/src/PickleCompiler.php
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ private function pickleDataTable(DataTable $dataTable, array $variableCells, arr
private function pickleDocString(DocString $docstring, array $variableCells, array $valueCells): PickleDocString
{
return new PickleDocString(
mediaType: $docstring->mediaType ? $this->interpolate($docstring->mediaType, $variableCells, $valueCells) : null,
mediaType: $docstring->mediaType !== null ? $this->interpolate($docstring->mediaType, $variableCells, $valueCells) : null,
content: $this->interpolate($docstring->content, $variableCells, $valueCells),
);
}
Expand Down
2 changes: 1 addition & 1 deletion php/src/TokenFormatter.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public function formatToken(Token $token): string
$token->getLocation()->line,
$token->getLocation()->column,
$token->match?->tokenType->name ?? '',
$token->match?->keyword ? $this->formatKeyword($token) : '',
$token->match?->keyword !== null ? $this->formatKeyword($token) : '',
$token->match?->text ?? '',
$token->match === null ? ''
: join(',', array_map(fn ($linespan) => $linespan->column . ':' . $linespan->text, $token->match->items)),
Expand Down

0 comments on commit 5d8eb96

Please sign in to comment.