mirror of
https://github.com/retailcrm/graphql-php.git
synced 2024-11-22 12:56:05 +03:00
Merge pull request #477 from mcg-web/max-query-int-forced
Force int when setting max query depth
This commit is contained in:
commit
ef9a24b01f
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user