Skip to content

Commit 7f99cc0

Browse files
committed
Upgrading to PHPStan 0.12
1 parent 1805077 commit 7f99cc0

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
"require-dev": {
2626
"phpunit/phpunit": "^8.4.1",
2727
"mouf/picotainer": "^1.1",
28-
"phpstan/phpstan": "^0.11.16",
28+
"phpstan/phpstan": "^0.12.14",
2929
"php-coveralls/php-coveralls": "^2.1.0",
3030
"symfony/translation": "^4",
3131
"doctrine/coding-standard": "^7.0"

src/ValidationFailedException.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ class ValidationFailedException extends InvalidArgumentException implements Grap
1616
/** @var ConstraintViolationException[] */
1717
private $exceptions = [];
1818

19+
/**
20+
* @param ConstraintViolationListInterface<ConstraintViolationInterface> $constraintViolationList
21+
*/
1922
public function __construct(ConstraintViolationListInterface $constraintViolationList)
2023
{
2124
parent::__construct('Validation failed:', 400);
@@ -48,6 +51,7 @@ public function hasExceptions(): bool
4851
* If only one exception is passed, it is thrown.
4952
* If many exceptions are passed, they are bundled in the GraphQLAggregateException
5053
*
54+
* @param ConstraintViolationListInterface<ConstraintViolationInterface> $constraintViolationList
5155
* @throws ValidationFailedException
5256
*/
5357
public static function throwException(ConstraintViolationListInterface $constraintViolationList): void

0 commit comments

Comments
 (0)