/** * Check if scope and value are valid * * @param string $field * @param mixed $scope * @param mixed $value */ protected function checkScopeAndValue($field, $scope, $value) { if (!is_numeric($value)) { throw InvalidArgumentException::numericExpected($field, 'filter', 'completeness', gettype($value)); } if (null === $scope) { throw InvalidArgumentException::scopeExpected($field, 'filter', 'completeness'); } }