Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
minor silexphp#1407 Fix invalid parameters order (fortis)
This PR was merged into the 2.0.x-dev branch.

Discussion
----------

Fix invalid parameters order

see http://php.net/manual/en/function.strpos.php

Commits
-------

73d1e21 Fix invalid parameters order
  • Loading branch information
fabpot committed Aug 15, 2016
2 parents efe70d6 + 73d1e21 commit c7a9019
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc/cookbook/guard_authentication.rst
Expand Up @@ -52,7 +52,7 @@ AbstractGuardAuthenticator. This requires you to implement six methods:
}
// Parse the header or ignore it if the format is incorrect.
if (false === strpos(':', $token)) {
if (false === strpos($token, ':')) {
return;
}
list($username, $secret) = explode(':', $token, 2);
Expand Down

0 comments on commit c7a9019

Please sign in to comment.