| 1 | <?php |
||
| 20 | final class DownloadOrderInvoice |
||
| 21 | { |
||
| 22 | /** @var InvoiceRepositoryInterface */ |
||
| 23 | private $invoiceRepository; |
||
| 24 | |||
| 25 | /** @var InvoiceRepositoryInterface */ |
||
| 26 | private $invoiceFileResolver; |
||
| 27 | |||
| 28 | public function __construct( |
||
| 35 | |||
| 36 | public function __invoke(string $orderTokenValue): BinaryFileResponse |
||
| 46 | } |
||
| 47 |
Our type inference engine has found a suspicous assignment of a value to a property. This check raises an issue when a value that can be of a given class or a super-class is assigned to a property that is type hinted more strictly.
Either this assignment is in error or an instanceof check should be added for that assignment.