Skip to content
This repository was archived by the owner on Jan 21, 2020. It is now read-only.

Commit a451aaf

Browse files
committed
Ensures that an integer identifier is greater than 1
1 parent 8a38229 commit a451aaf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Twitter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1463,7 +1463,7 @@ public function init(string $path, Http\Client $client) : void
14631463
*/
14641464
protected function validInteger($int) : int
14651465
{
1466-
if (is_int($int)) {
1466+
if (is_int($int) && $int > -1) {
14671467
return $int;
14681468
}
14691469

0 commit comments

Comments
 (0)