We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4678f67 commit b4d5c47Copy full SHA for b4d5c47
src/models/Storage.php
@@ -61,7 +61,7 @@ protected function readLastId()
61
{
62
$path = $this->getLastIDPath();
63
64
- return file_exists($path) ? (int) file_get_contents($path) : 1000000;
+ return (file_exists($path) ? (int) file_get_contents($path) : 0) ?: 1000000;
65
}
66
67
protected function writeLastId($value)
0 commit comments