Skip to content

Commit

Permalink
Move some static extension methods to non-static
Browse files Browse the repository at this point in the history
  • Loading branch information
fabpot committed May 1, 2024
1 parent 5c572c5 commit c3de73b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion IntlExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,7 @@ public function formatNumberStyle(string $style, $number, array $attrs = [], str
*/
public function formatDateTime(Environment $env, $date, ?string $dateFormat = 'medium', ?string $timeFormat = 'medium', string $pattern = '', $timezone = null, string $calendar = 'gregorian', ?string $locale = null): string
{
$date = CoreExtension::convertDate($env, $date, $timezone);
$date = $env->getExtension(CoreExtension::class)->convertDate($date, $timezone);

$formatterTimezone = $timezone;
if (null === $formatterTimezone || false === $formatterTimezone) {
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
],
"require": {
"php": ">=7.2.5",
"twig/twig": "^3.9",
"twig/twig": "^3.10",
"symfony/intl": "^5.4|^6.4|^7.0"
},
"require-dev": {
Expand Down

0 comments on commit c3de73b

Please sign in to comment.