| 1 | <?php |
||
| 21 | final class Frame |
||
| 22 | { |
||
| 23 | private $type; |
||
| 24 | private $channel; |
||
| 25 | private $method; |
||
| 26 | private $values; |
||
| 27 | private $string; |
||
| 28 | |||
| 29 | public function __construct( |
||
| 59 | |||
| 60 | public function type(): Type |
||
| 64 | |||
| 65 | public function channel(): Channel |
||
| 69 | |||
| 70 | public function method(): Method |
||
| 74 | |||
| 75 | /** |
||
| 76 | * @return StreamInterface<Value> |
||
| 77 | */ |
||
| 78 | public function values(): StreamInterface |
||
| 82 | |||
| 83 | public function __toString(): string |
||
| 87 | } |
||
| 88 |
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: