Remove redundant assertions
MODIFY
src/DateStep.php
src/DateStep.php
@@ -16,7 +16,6 @@ use function array_combine;
use function array_count_values;
use function array_map;
use function array_shift;
-use function assert;
use function ceil;
use function date_default_timezone_get;
use function explode;
@@ -409,7 +408,6 @@ class DateStep extends Date
} else {
$baseDate = $baseDate->sub($minimumInterval);
}
- assert($baseDate !== false);
}
while (
@@ -422,8 +420,6 @@ class DateStep extends Date
$baseDate = $baseDate->sub($step);
}
- assert($baseDate !== false);
-
// phpcs:ignore SlevomatCodingStandard.Operators.DisallowEqualOperators.DisallowedEqualOperator
if ($baseDate == $valueDate) {
return true;

Remove redundant assertions

Signed-off-by: George Steel <george@net-glue.co.uk>