diff --git a/src/Validator/Rules/QueryDepth.php b/src/Validator/Rules/QueryDepth.php index c840f74..e4b31a0 100644 --- a/src/Validator/Rules/QueryDepth.php +++ b/src/Validator/Rules/QueryDepth.php @@ -103,7 +103,7 @@ class QueryDepth extends QuerySecurityRule { $this->checkIfGreaterOrEqualToZero('maxQueryDepth', $maxQueryDepth); - $this->maxQueryDepth = $maxQueryDepth; + $this->maxQueryDepth = (int) $maxQueryDepth; } public static function maxQueryDepthErrorMessage($max, $count)