Skip to content

Commit ab12288

Browse files
committed
Remove obsolete code for PHP < 8.1.7
1 parent 1246bbd commit ab12288

1 file changed

Lines changed: 0 additions & 6 deletions

File tree

src/Field/TimeZoneOffsetTotalSeconds.php

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@
66

77
use Brick\DateTime\DateTimeException;
88

9-
use const PHP_VERSION_ID;
10-
119
/**
1210
* The total number of seconds in a time-zone offset, from -64800 to 64800 (-18:00 to +18:00).
1311
*
@@ -35,9 +33,5 @@ public static function check(int $offsetSeconds): void
3533
if ($offsetSeconds < -self::MAX_SECONDS || $offsetSeconds > self::MAX_SECONDS) {
3634
throw DateTimeException::fieldNotInRange(self::NAME, $offsetSeconds, -self::MAX_SECONDS, self::MAX_SECONDS);
3735
}
38-
39-
if ($offsetSeconds % 60 !== 0 && PHP_VERSION_ID < 8_01_07) {
40-
throw DateTimeException::timeZoneOffsetSecondsMustBeMultipleOf60($offsetSeconds);
41-
}
4236
}
4337
}

0 commit comments

Comments
 (0)