File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change 25
25
"require-dev" : {
26
26
"phpunit/phpunit" : " ^8.4.1" ,
27
27
"mouf/picotainer" : " ^1.1" ,
28
- "phpstan/phpstan" : " ^0.11.16 " ,
28
+ "phpstan/phpstan" : " ^0.12.14 " ,
29
29
"php-coveralls/php-coveralls" : " ^2.1.0" ,
30
30
"symfony/translation" : " ^4" ,
31
31
"doctrine/coding-standard" : " ^7.0"
Original file line number Diff line number Diff line change @@ -16,6 +16,9 @@ class ValidationFailedException extends InvalidArgumentException implements Grap
16
16
/** @var ConstraintViolationException[] */
17
17
private $ exceptions = [];
18
18
19
+ /**
20
+ * @param ConstraintViolationListInterface<ConstraintViolationInterface> $constraintViolationList
21
+ */
19
22
public function __construct (ConstraintViolationListInterface $ constraintViolationList )
20
23
{
21
24
parent ::__construct ('Validation failed: ' , 400 );
@@ -48,6 +51,8 @@ public function hasExceptions(): bool
48
51
* If only one exception is passed, it is thrown.
49
52
* If many exceptions are passed, they are bundled in the GraphQLAggregateException
50
53
*
54
+ * @param ConstraintViolationListInterface<ConstraintViolationInterface> $constraintViolationList
55
+ *
51
56
* @throws ValidationFailedException
52
57
*/
53
58
public static function throwException (ConstraintViolationListInterface $ constraintViolationList ): void
You can’t perform that action at this time.
0 commit comments