diff --git a/src/Templating/Helper/LocaleHelper.php b/src/Templating/Helper/LocaleHelper.php index dcf442e6..012e6607 100644 --- a/src/Templating/Helper/LocaleHelper.php +++ b/src/Templating/Helper/LocaleHelper.php @@ -55,6 +55,8 @@ public function country($code, $locale = null) return $this->fixCharset($this->intlExtension->getCountryName($code, $locale ?: $this->localeDetector->getLocale())); } + // NEXT_MAJOR: Execute the previous block unconditionally and remove following lines in this method. + @trigger_error(sprintf( 'Not passing an instance of "%s" as argument 3 for %s::__construct() is deprecated since sonata-project/intl-bundle 2.x.' .' and will throw an exception since version 3.x.', @@ -77,6 +79,8 @@ public function language($code, $locale = null) $this->fixCharset($this->intlExtension->getLanguageName($code, $locale)); } + // NEXT_MAJOR: Execute the previous block unconditionally and remove following lines in this method. + @trigger_error(sprintf( 'Not passing an instance of "%s" as argument 3 for %s::__construct() is deprecated since sonata-project/intl-bundle 2.x.' .' and will throw an exception since version 3.x.', @@ -99,6 +103,8 @@ public function locale($code, $locale = null) $this->fixCharset($this->intlExtension->getLocaleName($code, $locale)); } + // NEXT_MAJOR: Execute the previous block unconditionally and remove following lines in this method. + @trigger_error(sprintf( 'Not passing an instance of "%s" as argument 3 for %s::__construct() is deprecated since sonata-project/intl-bundle 2.x.' .' and will throw an exception since version 3.x.',