| Total Complexity | 5 |
| Total Lines | 38 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 11 | final class LayoutDataProvider implements ItemDataProviderInterface |
||
| 12 | { |
||
| 13 | /** |
||
| 14 | * @var ObjectRepository |
||
| 15 | */ |
||
| 16 | private $managerRegistry; |
||
| 17 | |||
| 18 | /** |
||
| 19 | * LayoutDataProvider constructor. |
||
| 20 | * |
||
| 21 | * @param ManagerRegistry $managerRegistry |
||
| 22 | */ |
||
| 23 | public function __construct(ManagerRegistry $managerRegistry) |
||
| 24 | { |
||
| 25 | $this->managerRegistry = $managerRegistry; |
||
|
|
|||
| 26 | } |
||
| 27 | |||
| 28 | /** |
||
| 29 | * @param string $resourceClass |
||
| 30 | * @param int|string $id |
||
| 31 | * @param string|null $operationName |
||
| 32 | * @param array $context |
||
| 33 | * |
||
| 34 | * @return Layout|null |
||
| 35 | * @throws ResourceClassNotSupportedException |
||
| 36 | */ |
||
| 37 | public function getItem(string $resourceClass, $id, string $operationName = null, array $context = []) |
||
| 49 | } |
||
| 50 | } |
||
| 51 |
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..