Skip to content

Commit 4284f85

Browse files
committed
Fixing PHPStan issue
1 parent f789b76 commit 4284f85

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

src/ConstraintViolationException.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ class ConstraintViolationException extends Exception implements GraphQLException
1515

1616
public function __construct(ConstraintViolationInterface $violation)
1717
{
18-
parent::__construct($violation->getMessage(), 400);
18+
parent::__construct((string) $violation->getMessage(), 400);
1919
$this->violation = $violation;
2020
}
2121

src/Mappers/Parameters/AssertParameterMiddleware.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
use TheCodingMachine\GraphQLite\Mappers\Parameters\ParameterMiddlewareInterface;
1616
use TheCodingMachine\GraphQLite\Parameters\InputTypeParameterInterface;
1717
use TheCodingMachine\GraphQLite\Parameters\ParameterInterface;
18-
use TheCodingMachine\Graphqlite\Validator\Annotations\Assert;
1918
use TheCodingMachine\Graphqlite\Validator\Annotations\Assertion;
2019
use function array_map;
2120
use function array_merge;

0 commit comments

Comments
 (0)