1 | <?php |
||
15 | class Manager implements ManagerInterface |
||
16 | { |
||
17 | use LoggerAwareTrait; |
||
18 | |||
19 | /** |
||
20 | * @var string |
||
21 | */ |
||
22 | protected $baseCurrency; |
||
23 | |||
24 | /** |
||
25 | * @var RepositoryInterface |
||
26 | */ |
||
27 | protected $repository; |
||
28 | |||
29 | /** |
||
30 | * @var SourcesRegistryInterface |
||
31 | */ |
||
32 | protected $sources; |
||
33 | |||
34 | /** |
||
35 | * @var ProcessorsRegistryInterface |
||
36 | */ |
||
37 | protected $processors; |
||
38 | |||
39 | /** |
||
40 | * @var RatesConfigurationRegistryInterface |
||
41 | */ |
||
42 | protected $configurations; |
||
43 | |||
44 | public function __construct($baseCurrency, RepositoryInterface $repository, SourcesRegistryInterface $sources, ProcessorsRegistryInterface $processors, RatesConfigurationRegistryInterface $configurations) |
||
52 | |||
53 | /** |
||
54 | * {@inheritdoc} |
||
55 | */ |
||
56 | public function has($currencyCode, $date = null, $rateType = 'default') |
||
60 | |||
61 | /** |
||
62 | * {@inheritdoc} |
||
63 | */ |
||
64 | public function get($currencyCode, $date = null, $rateType = 'default') |
||
68 | |||
69 | /** |
||
70 | * {@inheritdoc} |
||
71 | */ |
||
72 | public function latest($currencyCode, $rateType = 'default') |
||
76 | |||
77 | /** |
||
78 | * {@inheritdoc} |
||
79 | */ |
||
80 | public function today($currencyCode, $rateType = 'default') |
||
93 | |||
94 | /** |
||
95 | * {@inheritdoc} |
||
96 | */ |
||
97 | public function fetch($sourceName = null, $date = null) |
||
135 | } |
||
136 |
It seems like the type of the argument is not accepted by the function/method which you are calling.
In some cases, in particular if PHP’s automatic type-juggling kicks in this might be fine. In other cases, however this might be a bug.
We suggest to add an explicit type cast like in the following example: