Skip to content

Commit

Permalink
Fix PHP 8.4 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
thekid committed Apr 12, 2024
1 parent 08fe415 commit 7197e5d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/php/web/frontend/helpers/Dates.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ class Dates extends Extension {
* Creates new dates extension using the given timezone and optional
* named formats to be used with the `format` parameter.
*
* @param util.TimeZone $timezone Pass NULL to use local timezone
* @param ?util.TimeZone $timezone Pass NULL to use local timezone
* @param [:string] $formats Named formats
*/
public function __construct(TimeZone $timezone= null, $formats= []) {
public function __construct($timezone= null, $formats= []) {
$this->timezone= $timezone ?? TimeZone::getLocal();
$this->formats= $formats + [null => 'd.m.Y H:i:s'];
}
Expand Down

0 comments on commit 7197e5d

Please sign in to comment.