From c3de73b7b992fc3342627e05c5bd63b49493ffaa Mon Sep 17 00:00:00 2001 From: Fabien Potencier Date: Fri, 19 Apr 2024 10:44:20 -0400 Subject: [PATCH] Move some static extension methods to non-static --- IntlExtension.php | 2 +- composer.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/IntlExtension.php b/IntlExtension.php index 1e632a3..e87fd08 100644 --- a/IntlExtension.php +++ b/IntlExtension.php @@ -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) { diff --git a/composer.json b/composer.json index a46eada..b3c3cef 100644 --- a/composer.json +++ b/composer.json @@ -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": {