Skip to content

Commit

Permalink
Standardize naming
Browse files Browse the repository at this point in the history
  • Loading branch information
askvortsov1 committed Nov 19, 2020
1 parent a39ff0e commit b201523
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Extend/Auth.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,16 +21,16 @@ class Auth implements ExtenderInterface
* Add a new password checker.
*
* @param string $identifier: Unique identifier for password checker.
* @param string $passwordChecker: A closure or invokable class that contains the logic of the password checker.
* @param callable|string $callback: A closure or invokable class that contains the logic of the password checker.
* It should return one of:
* - `false`: This marks the password as NOT VALID. It overrides all other outputs
* - `true`: This marks the password as VALID.
* All other outputs will be ignored.
* @return self
*/
public function addPasswordChecker(string $identifier, $passwordChecker)
public function addPasswordChecker(string $identifier, $callback)
{
$this->addPasswordCheckers[$identifier] = $passwordChecker;
$this->addPasswordCheckers[$identifier] = $callback;

return $this;
}
Expand Down

0 comments on commit b201523

Please sign in to comment.