Conditions | 1 |
Paths | 1 |
Total Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php |
||
21 | public function __construct(LoggerInterface $logger, CommentRepository $commentRepository, PostRepository $postRepository, UserFactory $userFactory) |
||
22 | { |
||
23 | parent::__construct($logger); |
||
24 | $this->userFactory = $userFactory; |
||
|
|||
25 | $this->commentRepository = $commentRepository; |
||
26 | $this->postRepository = $postRepository; |
||
27 | } |
||
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..