| 1 | <?php |
||
| 9 | class CommentFactory extends AbstractFactory |
||
| 10 | { |
||
| 11 | /** @var CommentRepository */ |
||
| 12 | private $commentRepository; |
||
| 13 | |||
| 14 | /** @var PostRepository */ |
||
| 15 | private $postRepository; |
||
| 16 | |||
| 17 | /** @var UserFactory */ |
||
| 18 | private $userFactory; |
||
| 19 | |||
| 20 | |||
| 21 | public function __construct(LoggerInterface $logger, CommentRepository $commentRepository, PostRepository $postRepository, UserFactory $userFactory) |
||
| 28 | } |
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..