1 | <?php |
||
9 | class MailableFactory |
||
10 | { |
||
11 | /** @var \Spatie\MailableTest\FakerArgumentValueProvider */ |
||
12 | protected $argumentValueProvider; |
||
13 | |||
14 | public function __construct(ArgumentValueProvider $argumentValueProvider) |
||
18 | |||
19 | public function getInstance(string $mailableClass, string $toEmail, $defaultValues): Mailable |
||
29 | |||
30 | public function getArguments(string $mailableClass, array $defaultValues) |
||
46 | |||
47 | protected function setRecipient(Mailable $mailable, string $email): Mailable |
||
55 | } |
||
56 |
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.