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 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"
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments