|
29 | 29 | <?php echo $view['translator']->transChoice( |
30 | 30 | '{0} There is no apples|{1} There is one apple|]1,Inf[ There are %count% apples', |
31 | 31 | 10, |
32 | | - array('%count%' => 10) |
| 32 | + ['%count%' => 10] |
33 | 33 | ) ?> |
34 | 34 |
|
35 | | -<?php echo $view['translator']->trans('other-domain-test-no-params-short-array', array(), 'not_messages'); ?> |
| 35 | +<?php echo $view['translator']->trans('other-domain-test-no-params-short-array', [], 'not_messages'); ?> |
36 | 36 |
|
37 | | -<?php echo $view['translator']->trans('other-domain-test-no-params-long-array', array(), 'not_messages'); ?> |
| 37 | +<?php echo $view['translator']->trans('other-domain-test-no-params-long-array', [], 'not_messages'); ?> |
38 | 38 |
|
39 | | -<?php echo $view['translator']->trans('other-domain-test-params-short-array', array('foo' => 'bar'), 'not_messages'); ?> |
| 39 | +<?php echo $view['translator']->trans('other-domain-test-params-short-array', ['foo' => 'bar'], 'not_messages'); ?> |
40 | 40 |
|
41 | | -<?php echo $view['translator']->trans('other-domain-test-params-long-array', array('foo' => 'bar'), 'not_messages'); ?> |
| 41 | +<?php echo $view['translator']->trans('other-domain-test-params-long-array', ['foo' => 'bar'], 'not_messages'); ?> |
42 | 42 |
|
43 | | -<?php echo $view['translator']->transChoice('other-domain-test-trans-choice-short-array-%count%', 10, array('%count%' => 10), 'not_messages'); ?> |
| 43 | +<?php echo $view['translator']->transChoice('other-domain-test-trans-choice-short-array-%count%', 10, ['%count%' => 10], 'not_messages'); ?> |
44 | 44 |
|
45 | | -<?php echo $view['translator']->transChoice('other-domain-test-trans-choice-long-array-%count%', 10, array('%count%' => 10), 'not_messages'); ?> |
| 45 | +<?php echo $view['translator']->transChoice('other-domain-test-trans-choice-long-array-%count%', 10, ['%count%' => 10], 'not_messages'); ?> |
46 | 46 |
|
47 | | -<?php echo $view['translator']->trans('typecast', array('a' => (int) '123'), 'not_messages'); ?> |
48 | | -<?php echo $view['translator']->transChoice('msg1', 10 + 1, array(), 'not_messages'); ?> |
49 | | -<?php echo $view['translator']->transChoice('msg2', ceil(4.5), array(), 'not_messages'); ?> |
| 47 | +<?php echo $view['translator']->trans('typecast', ['a' => (int) '123'], 'not_messages'); ?> |
| 48 | +<?php echo $view['translator']->transChoice('msg1', 10 + 1, [], 'not_messages'); ?> |
| 49 | +<?php echo $view['translator']->transChoice('msg2', ceil(4.5), [], 'not_messages'); ?> |
0 commit comments