Passed
Push — master ( a6819e...14f211 )
by
unknown
09:28 queued 02:18
created

MiniMemberList   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 3
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 2
c 1
b 0
f 0
dl 0
loc 3
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 2 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace MySociety\TheyWorkForYou\DataClass\Groups;
6
7
use MySociety\TheyWorkForYou\DataClass\BaseCollection;
8
9
/**
10
 * @extends BaseCollection<MiniMember>
11
 */
12
class MiniMemberList extends BaseCollection {
13
    public function __construct(MiniMember ...$members) {
14
        $this->items = $members;
0 ignored issues
show
Documentation Bug introduced by
It seems like $members of type array<integer,MySociety\...lass\Groups\MiniMember> is incompatible with the declared type Rutek\Dataclass\T[] of property $items.

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..

Loading history...
15
    }
16
}
17