mirror of
https://github.com/retailcrm/graphql-php.git
synced 2024-11-21 20:36:05 +03:00
Force int when setting max query depth
This commit is contained in:
parent
27539d5af0
commit
40ac5ed269
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user