# Bug report <!-- Before reporting an issue please check that you are using the latest PHPStan version! --> This code snip will not always be true as `OrderSaved::$dtos` might not contain `ReceiptOrder` since `ReceiptOrder::fromOrder()` can return null ``` if (\in_array(ReceiptOrder::class, $missingClasses, true)) { } ``` ### Code snippet that reproduces the problem https://phpstan.org/r/7b6a301e-f874-4dce-bcd5-1c54cd42e854 ### Expected output No errors