We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 291afcc commit 9530eaaCopy full SHA for 9530eaa
ShardingQuery.php
@@ -150,14 +150,14 @@ public function __construct(array $config)
150
$this->$key = $value;
151
break;
152
case 'limit':
153
- if (!is_int($value)) {
154
- throw new \RuntimeException("'limit' is not a int type.");
+ if (!is_numeric($value)) {
+ throw new \RuntimeException("'limit' is not a numeric type.");
155
}
156
157
158
case 'offset':
159
160
- throw new \RuntimeException("'offset' is not a int type.");
+ throw new \RuntimeException("'offset' is not a numeric type.");
161
162
163
0 commit comments