Skip to content

Commit

Permalink
Fix Psalm errors
Browse files Browse the repository at this point in the history
  • Loading branch information
paragonie-security committed Jan 3, 2019
1 parent 92c874b commit b1b8612
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
7 changes: 5 additions & 2 deletions psalm.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,10 @@
<directory name="src" />
</projectFiles>
<issueHandlers>
<RedundantCondition errorLevel="info" />
<RedundantConditionGivenDocblockType errorLevel="info" />
<MixedArgument errorLevel="info" />
<MixedArrayAccess errorLevel="info" />
<MoreSpecificImplementedParamType errorLevel="info" />
<RedundantCondition errorLevel="suppress" />
<RedundantConditionGivenDocblockType errorLevel="suppress" />
</issueHandlers>
</psalm>
4 changes: 2 additions & 2 deletions src/AntiCSRF.php
Original file line number Diff line number Diff line change
Expand Up @@ -313,8 +313,8 @@ public function validateRequest(): bool
}

if (
!isset($this->post[$this->formIndex]) ||
!isset($this->post[$this->formToken])
empty($this->post[$this->formIndex]) ||
empty($this->post[$this->formToken])
) {
// User must transmit a complete index/token pair
return false;
Expand Down

0 comments on commit b1b8612

Please sign in to comment.