comparison vendor/symfony/translation/IdentityTranslator.php @ 4:a9cd425dd02b

Update, including to Drupal core 8.6.10
author Chris Cannam
date Thu, 28 Feb 2019 13:11:55 +0000
parents c75dbcec494b
children
comparison
equal deleted inserted replaced
3:307d7a7fd348 4:a9cd425dd02b
46 } 46 }
47 47
48 /** 48 /**
49 * {@inheritdoc} 49 * {@inheritdoc}
50 */ 50 */
51 public function trans($id, array $parameters = array(), $domain = null, $locale = null) 51 public function trans($id, array $parameters = [], $domain = null, $locale = null)
52 { 52 {
53 return strtr((string) $id, $parameters); 53 return strtr((string) $id, $parameters);
54 } 54 }
55 55
56 /** 56 /**
57 * {@inheritdoc} 57 * {@inheritdoc}
58 */ 58 */
59 public function transChoice($id, $number, array $parameters = array(), $domain = null, $locale = null) 59 public function transChoice($id, $number, array $parameters = [], $domain = null, $locale = null)
60 { 60 {
61 return strtr($this->selector->choose((string) $id, (int) $number, $locale ?: $this->getLocale()), $parameters); 61 return strtr($this->selector->choose((string) $id, (int) $number, $locale ?: $this->getLocale()), $parameters);
62 } 62 }
63 } 63 }