Skip to content

Commit

Permalink
Fix type declaration
Browse files Browse the repository at this point in the history
  • Loading branch information
campbell-m committed Aug 10, 2023
1 parent be74649 commit 3fd52a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web/lib/MRBS/DateTime.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class DateTime extends \DateTime
// https://stackoverflow.com/questions/5450197/make-datetimecreatefromformat-return-child-class-instead-of-parent
// This method will no longer be necessary when the minimum PHP version is > 7.
#[\ReturnTypeWillChange]
public static function createFromFormat($format, $datetime, \DateTimeZone $timezone = null)
public static function createFromFormat($format, $datetime, ?\DateTimeZone $timezone = null)
{
assert(version_compare(MRBS_MIN_PHP_VERSION, '8.0.0', '<'), "This method is now redundant.");

Expand Down

0 comments on commit 3fd52a6

Please sign in to comment.