Merge pull request #477 from mcg-web/max-query-int-forced

Force int when setting max query depth
This commit is contained in:
Vladimir Razuvaev 2019-05-13 14:10:33 +07:00 committed by GitHub
commit ef9a24b01f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)