We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
| Total Complexity | 7 |
| Total Lines | 64 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 12 | class Connection implements ConnectionInterface |
||
| 13 | { |
||
| 14 | use DeprecatedPropertyPublicAccessTrait; |
||
| 15 | |||
| 16 | /** @var EdgeInterface[] */ |
||
| 17 | protected array $edges; |
||
| 18 | |||
| 19 | protected ?PageInfoInterface $pageInfo; |
||
| 20 | |||
| 21 | /** @var int|Promise|null Total count or promise that returns the total count */ |
||
| 22 | protected $totalCount = null; |
||
| 23 | |||
| 24 | 92 | public function __construct(array $edges = [], PageInfoInterface $pageInfo = null) |
|
| 28 | 92 | } |
|
| 29 | |||
| 30 | /** |
||
| 31 | * {@inheritdoc} |
||
| 32 | */ |
||
| 33 | 89 | public function getEdges(): array |
|
| 34 | { |
||
| 35 | 89 | return $this->edges; |
|
| 36 | } |
||
| 37 | |||
| 38 | /** |
||
| 39 | * {@inheritdoc} |
||
| 40 | */ |
||
| 41 | 2 | public function setEdges(iterable $edges): void |
|
| 44 | 2 | } |
|
| 45 | |||
| 46 | /** |
||
| 47 | * {@inheritdoc} |
||
| 48 | */ |
||
| 49 | 71 | public function getPageInfo(): ? PageInfoInterface |
|
| 52 | } |
||
| 53 | |||
| 54 | /** |
||
| 55 | * {@inheritdoc} |
||
| 56 | */ |
||
| 57 | 1 | public function setPageInfo(PageInfoInterface $pageInfo): void |
|
| 60 | 1 | } |
|
| 61 | |||
| 62 | /** |
||
| 63 | * {@inheritdoc} |
||
| 64 | */ |
||
| 65 | 57 | public function getTotalCount() |
|
| 66 | { |
||
| 67 | 57 | return $this->totalCount; |
|
| 68 | } |
||
| 69 | |||
| 70 | /** |
||
| 71 | * {@inheritdoc} |
||
| 72 | */ |
||
| 73 | 4 | public function setTotalCount($totalCount): void |
|
| 76 | 4 | } |
|
| 77 | } |
||
| 78 |
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..