Skip to content

Commit a624447

Browse files
committed
Tighten type annotation for get/setComponents
1 parent b081210 commit a624447

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/Property/Selector.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,15 +152,15 @@ public static function parse(ParserState $parserState, array &$comments = []): s
152152
}
153153

154154
/**
155-
* @return list<Component>
155+
* @return non-empty-list<Component>
156156
*/
157157
public function getComponents(): array
158158
{
159159
return $this->components;
160160
}
161161

162162
/**
163-
* @param list<Component> $components
163+
* @param non-empty-list<Component> $components
164164
* This should be an alternating sequence of `CompoundSelector` and `Combinator`, starting and ending with a
165165
* `CompoundSelector`, and may be a single `CompoundSelector`.
166166
*/

0 commit comments

Comments
 (0)