1 | <?php |
||
12 | class ResourceModule extends AbstractModule |
||
13 | { |
||
14 | /** |
||
15 | * @var string |
||
16 | */ |
||
17 | private $appName; |
||
18 | |||
19 | /** |
||
20 | * @param string $appName |
||
21 | */ |
||
22 | 47 | public function __construct($appName) |
|
23 | { |
||
24 | 47 | $this->appName = $appName; |
|
25 | 47 | parent::__construct(); |
|
26 | 47 | } |
|
27 | |||
28 | /** |
||
29 | * {@inheritdoc} |
||
30 | */ |
||
31 | 47 | protected function configure() |
|
37 | } |
||
38 |
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: