Total Complexity | 9 |
Total Lines | 32 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
12 | class MiniGroupList extends BaseCollection { |
||
13 | public function __construct(MiniGroup ...$members) { |
||
14 | $this->items = $members; |
||
|
|||
15 | } |
||
16 | |||
17 | public function findByName(string $name): ?MiniGroup { |
||
18 | foreach ($this->items as $member) { |
||
19 | if ($member->name === $name) { |
||
20 | return $member; |
||
21 | } |
||
22 | } |
||
23 | return null; |
||
24 | } |
||
25 | |||
26 | public function findBySlug(string $slug): ?MiniGroup { |
||
33 | } |
||
34 | |||
35 | public static function uk_committees(): self { |
||
46 |
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..