Skip to content

Commit

Permalink
suppress phpstan deprecation warning
Browse files Browse the repository at this point in the history
  • Loading branch information
sammyskills committed May 23, 2023
1 parent ad2e232 commit eedc945
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/Authentication/Passwords/ValidationRules.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ public function strong_password(string $value, ?string &$error1 = null, array $d
if (function_exists('auth') && auth()->user()) {
$user = auth()->user();
} else {
/** @phpstan-ignore-next-line */
$user = empty($data) ? $this->buildUserFromRequest() : $this->buildUserFromData($data);
}

Expand Down Expand Up @@ -67,8 +68,6 @@ public function max_byte(?string $str, string $val): bool
/**
* Builds a new user instance from the global request.
*
* @phpstan-ignore-next-line
*
* @deprecated This will be removed soon.
*
* @see https://github.com/codeigniter4/shield/pull/747#discussion_r1198778666
Expand Down

0 comments on commit eedc945

Please sign in to comment.