Skip to content

Commit

Permalink
Phpstan: v0.12
Browse files Browse the repository at this point in the history
  • Loading branch information
f3l1x committed Jan 4, 2021
1 parent 0141762 commit a44a602
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@
"require-dev": {
"ninjify/nunjuck": "^0.4",
"ninjify/qa": "^0.12",
"phpstan/phpstan-deprecation-rules": "^0.11",
"phpstan/phpstan-nette": "^0.11",
"phpstan/phpstan": "^0.11",
"phpstan/phpstan-strict-rules": "^0.11"
"phpstan/phpstan-deprecation-rules": "^0.12",
"phpstan/phpstan-nette": "^0.12",
"phpstan/phpstan": "^0.12",
"phpstan/phpstan-strict-rules": "^0.12"
},
"autoload": {
"psr-4": {
Expand Down
2 changes: 1 addition & 1 deletion src/Forms/InvisibleReCaptchaField.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ private function configureValidation(): void
}

$message = $this->message ?? 'Are you a bot?';
$this->addRule(function ($code) {
$this->addRule(function ($code): bool {
return $this->verify() === true;
}, $message);
$this->configured = true;
Expand Down
2 changes: 1 addition & 1 deletion src/Forms/ReCaptchaField.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ private function configureValidation(): void
}

$message = $this->message ?? 'Are you a bot?';
$this->addRule(function ($code) {
$this->addRule(function ($code): bool {
return $this->verify() === true;
}, $message);
$this->configured = true;
Expand Down

0 comments on commit a44a602

Please sign in to comment.