Skip to content
Permalink
Browse files

removed options from parameter

  • Loading branch information...
ritesh-pandey committed Aug 31, 2015
1 parent 283f89d commit 8095b7c1d495ff872b6abb7fba2f417770f88999
Showing with 3 additions and 3 deletions.
  1. +2 −2 src/I18n/Number.php
  2. +1 −1 src/View/Helper/NumberHelper.php
@@ -325,9 +325,9 @@ public static function formatter($options = [])
* @param array $options An array with options.
* @return string
*/
public static function ordinal($value, array $options = [])
public static function ordinal($value)
{
$locale = isset($options['locale']) ? $options['locale'] : Locale::getDefault();
$locale = Locale::getDefault();
$formatter = new NumberFormatter($locale, NumberFormatter::ORDINAL);
return $formatter->format($value);
}
@@ -231,7 +231,7 @@ public function implementedEvents()
return [];
}
public function ordinal($value, $options = [])
public function ordinal($value)
{
return $this->_engine->ordinal($value);
}

0 comments on commit 8095b7c

Please sign in to comment.
You can’t perform that action at this time.