| Total Complexity | 4 |
| Total Lines | 36 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 21 | class MetaDataHelper |
||
| 22 | { |
||
| 23 | /** |
||
| 24 | * @var ExtensionRepository |
||
| 25 | */ |
||
| 26 | private $extensionRepository; |
||
| 27 | |||
| 28 | /** |
||
| 29 | * @var bool |
||
| 30 | */ |
||
| 31 | private $installed; |
||
| 32 | |||
| 33 | public function __construct( |
||
| 39 | } |
||
| 40 | |||
| 41 | /** |
||
| 42 | * overwrite composer.json settings with dynamic values from extension repository |
||
| 43 | */ |
||
| 44 | public function setDynamicMetaData(MetaData $metaData): MetaData |
||
| 59 |
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.