Skip to content

Commit

Permalink
Set ErrorLevel 1 for psalm (#31)
Browse files Browse the repository at this point in the history
  • Loading branch information
Fantom409 committed Dec 2, 2020
1 parent fa86142 commit 35a02a7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions psalm.xml
@@ -1,5 +1,6 @@
<?xml version="1.0"?>
<psalm
errorLevel="1"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="https://getpsalm.org/schema/config"
xsi:schemaLocation="https://getpsalm.org/schema/config vendor/vimeo/psalm/config.xsd"
Expand Down
1 change: 1 addition & 0 deletions src/TokenManager.php
Expand Up @@ -64,6 +64,7 @@ public function getClaims(string $token): ?array
return null;
}

/** @var array<array-key, mixed>|null */
return Json::decode($jws->getPayload() ?? '');
}

Expand Down

0 comments on commit 35a02a7

Please sign in to comment.