Skip to content

Commit fc4b3a8

Browse files
authored
Merge pull request #6 from moufmouf/phpstan0.12
Upgrading to PHPStan 0.12
2 parents 1805077 + 6d17c44 commit fc4b3a8

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-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: 5 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,8 @@ 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
55+
*
5156
* @throws ValidationFailedException
5257
*/
5358
public static function throwException(ConstraintViolationListInterface $constraintViolationList): void

0 commit comments

Comments
 (0)