1 | <?php |
||
23 | class StaticMapHelper extends AbstractHelper |
||
24 | { |
||
25 | /** |
||
26 | * @var string|null |
||
27 | */ |
||
28 | private $secret; |
||
29 | |||
30 | /** |
||
31 | * @var string|null |
||
32 | */ |
||
33 | private $clientId; |
||
34 | |||
35 | /** |
||
36 | * @var string|null |
||
37 | */ |
||
38 | private $channel; |
||
39 | |||
40 | /** |
||
41 | * @param string|null $secret |
||
42 | * @param string|null $clientId |
||
43 | * @param string|null $channel |
||
44 | */ |
||
45 | 4 | public function __construct( |
|
57 | |||
58 | /** |
||
59 | * @return bool |
||
60 | */ |
||
61 | public function hasSecret() |
||
65 | |||
66 | /** |
||
67 | * @return string|null |
||
68 | */ |
||
69 | public function getSecret() |
||
73 | |||
74 | /** |
||
75 | * @param string|null $secret |
||
76 | */ |
||
77 | public function setSecret($secret) |
||
81 | |||
82 | /** |
||
83 | * @return bool |
||
84 | */ |
||
85 | public function hasClientId() |
||
89 | |||
90 | /** |
||
91 | * @return string|null |
||
92 | */ |
||
93 | public function getClientId() |
||
97 | |||
98 | /** |
||
99 | * @param string|null $clientId |
||
100 | */ |
||
101 | public function setClientId($clientId) |
||
105 | |||
106 | /** |
||
107 | * @return bool |
||
108 | */ |
||
109 | public function hasChannel() |
||
113 | |||
114 | /** |
||
115 | * @return string|null |
||
116 | */ |
||
117 | public function getChannel() |
||
121 | |||
122 | /** |
||
123 | * @param string|null $channel |
||
124 | */ |
||
125 | public function setChannel($channel) |
||
129 | |||
130 | /** |
||
131 | * @return string |
||
132 | */ |
||
133 | public function render(Map $map) |
||
146 | } |
||
147 |
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: