1 | <?php |
||
11 | class Currency extends \Twig_Extension |
||
12 | { |
||
13 | /** |
||
14 | * @var MoneyHelper |
||
15 | */ |
||
16 | protected $moneyHelper; |
||
17 | |||
18 | /** |
||
19 | * @var SettingsHelper |
||
20 | */ |
||
21 | protected $helper; |
||
22 | |||
23 | protected $generalCurrencyKey; |
||
24 | |||
25 | protected $currencySymbols = array( |
||
26 | 'THB' => '฿', |
||
27 | ); |
||
28 | |||
29 | public function __construct( |
||
40 | |||
41 | public function getFunctions() |
||
51 | |||
52 | public function getFilters() |
||
58 | |||
59 | public function getCurrencySymbol($currency = null) |
||
69 | |||
70 | /** |
||
71 | * @param $amount |
||
72 | * @param null $currency |
||
73 | * |
||
74 | * @return string |
||
75 | */ |
||
76 | public function formatAmount($amount, $currency = null) |
||
80 | |||
81 | /** |
||
82 | * Returns the canonical name of this helper. |
||
83 | * |
||
84 | * @return string The canonical name |
||
85 | * |
||
86 | * @api |
||
87 | */ |
||
88 | public function getName() |
||
92 | } |
||
93 |
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..