From 40ac5ed269187ebc92621bf3018dc3b83541c661 Mon Sep 17 00:00:00 2001 From: Jeremiah VALERIE Date: Mon, 13 May 2019 07:50:47 +0200 Subject: [PATCH] Force int when setting max query depth --- src/Validator/Rules/QueryDepth.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)