Skip to content

Commit

Permalink
Address Psalm errors
Browse files Browse the repository at this point in the history
  • Loading branch information
scheb committed Dec 11, 2020
1 parent a6a3ce8 commit b8facec
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/analyzer/Stock/TombstoneNodeVisitor.php
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ public function leaveNode(Node $node)

private function isTombstoneFunction(FuncCall $node): bool
{
/** @psalm-suppress RedundantCondition */
if (isset($node->name->parts)) {
$nameParts = $node->name->parts;

Expand All @@ -124,6 +125,7 @@ private function extractArguments(FuncCall $node): array
$params = [];
foreach ($node->args as $arg) {
if ($arg->value instanceof String_) {
/** @psalm-suppress RedundantCastGivenDocblockType */
$params[] = (string) $arg->value->value;
} else {
$params[] = null;
Expand Down

0 comments on commit b8facec

Please sign in to comment.