Skip to content

Commit

Permalink
Add a psalm-suppress comment and change psalm config
Browse files Browse the repository at this point in the history
  • Loading branch information
solventt committed Jan 21, 2024
1 parent d3f96b2 commit 8260ac5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion psalm.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0"?>
<psalm errorLevel="1">
<psalm errorLevel="3">
<projectFiles>
<directory name="src"/>
</projectFiles>
Expand Down
1 change: 1 addition & 0 deletions src/SecurityHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ public function generateToken(int $length = 32): string
*/
public function addMask(string $token): string
{
/** @psalm-suppress InvalidArgument $mask */
$mask = random_bytes(strlen($token));

$token = $mask ^ $token;
Expand Down

0 comments on commit 8260ac5

Please sign in to comment.