Force int when setting max query depth

This commit is contained in:
Jeremiah VALERIE 2019-05-13 07:50:47 +02:00
parent 27539d5af0
commit 40ac5ed269
No known key found for this signature in database
GPG Key ID: 668676FD50ADF244

View File

@ -103,7 +103,7 @@ class QueryDepth extends QuerySecurityRule
{ {
$this->checkIfGreaterOrEqualToZero('maxQueryDepth', $maxQueryDepth); $this->checkIfGreaterOrEqualToZero('maxQueryDepth', $maxQueryDepth);
$this->maxQueryDepth = $maxQueryDepth; $this->maxQueryDepth = (int) $maxQueryDepth;
} }
public static function maxQueryDepthErrorMessage($max, $count) public static function maxQueryDepthErrorMessage($max, $count)