| Total Complexity | 3 |
| Total Lines | 29 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 10 | class ZxcvbnFactory implements ZxcvbnFactoryInterface |
||
| 11 | { |
||
| 12 | /** |
||
| 13 | * @var MatchInterface[] |
||
| 14 | */ |
||
| 15 | private $additionalMatchers; |
||
| 16 | /** |
||
| 17 | * @var TranslatorInterface |
||
| 18 | */ |
||
| 19 | private $translator; |
||
| 20 | |||
| 21 | 1 | public function __construct(iterable $additionalMatchers, TranslatorInterface $translator) |
|
| 22 | { |
||
| 23 | 1 | $this->additionalMatchers = $additionalMatchers; |
|
|
|
|||
| 24 | 1 | $this->translator = $translator; |
|
| 25 | 1 | } |
|
| 26 | |||
| 27 | 1 | public function createZxcvbn(): Zxcvbn |
|
| 39 | } |
||
| 40 | } |
||
| 41 |
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..