Skip to content

Commit

Permalink
Add missing "NEXT_MAJOR" comments
Browse files Browse the repository at this point in the history
  • Loading branch information
phansys committed Jun 6, 2020
1 parent 0bbc106 commit 03f4f43
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/Templating/Helper/LocaleHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.',
Expand All @@ -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.',
Expand All @@ -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.',
Expand Down

0 comments on commit 03f4f43

Please sign in to comment.