1 | <?php |
||
19 | class TextStringType extends AbstractObject |
||
20 | { |
||
21 | /** |
||
22 | * @var string |
||
23 | */ |
||
24 | private $value; |
||
25 | |||
26 | /** |
||
27 | * @param string $value |
||
28 | */ |
||
29 | public function __construct($value) |
||
33 | |||
34 | /** |
||
35 | * {@inheritdoc} |
||
36 | */ |
||
37 | public function writeToStream(SplFileObject $fileObject, $encryptionKey) |
||
43 | } |
||
44 |
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: