Skip to content

Commit

Permalink
Cast division result to int to support PHP 7.X
Browse files Browse the repository at this point in the history
  • Loading branch information
thekid committed Feb 13, 2021
1 parent a0bed83 commit b2fc8e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/php/web/frontend/Handlebars.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ public function __construct($templates) {
} else if ($options[0] instanceof Date) {
$d= $options[0];
} else if ($r= $options['timestamp'] ?? null) {
$d= new Date('@'.($options[0] / $resolution[$r]));
$d= new Date('@'.(int)($options[0] / $resolution[$r]));
} else {
$d= new Date($options[0]);
}
Expand Down

0 comments on commit b2fc8e1

Please sign in to comment.