Skip to content

Commit 0bc1137

Browse files
authored
Merge pull request #172 from kenjis/fix-phpstan-error
refactor: add assert() for PHPStan
2 parents 31dcb0b + c83222d commit 0bc1137

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/CronExpression.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,7 @@ private function checkTime(string $time, string $format): bool
142142
}
143143

144144
$currentTime = $this->testTime->format($format);
145+
assert(ctype_digit($currentTime));
145146

146147
// Handle repeating times (i.e. /5 or */5 for every 5 minutes)
147148
if (strpos($time, '/') !== false) {

0 commit comments

Comments
 (0)