| 1 | <?php |
||
| 12 | final class UidCommand implements RequestInterface |
||
| 13 | { |
||
| 14 | |||
| 15 | /** |
||
| 16 | * @var RequestInterface |
||
| 17 | */ |
||
| 18 | private $request; |
||
| 19 | |||
| 20 | /** |
||
| 21 | * UidCommand constructor. |
||
| 22 | * @param RequestInterface $request |
||
| 23 | */ |
||
| 24 | public function __construct(RequestInterface $request) |
||
| 28 | |||
| 29 | /** |
||
| 30 | * @return StreamInterface |
||
| 31 | */ |
||
| 32 | public function toStream(): StreamInterface |
||
| 39 | |||
| 40 | /** |
||
| 41 | * @return Tag |
||
| 42 | */ |
||
| 43 | public function getTag(): Tag |
||
| 47 | } |
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: