Skip to content

Commit f261869

Browse files
committed
Require a list to be passed to addComments()
1 parent c5d968c commit f261869

File tree

7 files changed

+7
-7
lines changed

7 files changed

+7
-7
lines changed

src/CSSList/CSSList.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -460,7 +460,7 @@ public function getContents()
460460
}
461461

462462
/**
463-
* @param array<int<0, max>, Comment> $comments
463+
* @param list<Comment> $comments
464464
*/
465465
public function addComments(array $comments): void
466466
{

src/Comment/Commentable.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
interface Commentable
88
{
99
/**
10-
* @param array<int<0, max>, Comment> $comments
10+
* @param list<Comment> $comments
1111
*/
1212
public function addComments(array $comments): void;
1313

src/Property/CSSNamespace.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ public function atRuleArgs(): array
121121
}
122122

123123
/**
124-
* @param array<int<0, max>, Comment> $comments
124+
* @param list<Comment> $comments
125125
*/
126126
public function addComments(array $comments): void
127127
{

src/Property/Charset.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ public function atRuleArgs()
101101
}
102102

103103
/**
104-
* @param array<int<0, max>, Comment> $comments
104+
* @param list<Comment> $comments
105105
*/
106106
public function addComments(array $comments): void
107107
{

src/Property/Import.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ public function atRuleArgs(): array
101101
}
102102

103103
/**
104-
* @param array<int<0, max>, Comment> $comments
104+
* @param list<Comment> $comments
105105
*/
106106
public function addComments(array $comments): void
107107
{

src/Rule/Rule.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ public function render(OutputFormat $outputFormat): string
249249
}
250250

251251
/**
252-
* @param array<int<0, max>, Comment> $comments
252+
* @param list<Comment> $comments
253253
*/
254254
public function addComments(array $comments): void
255255
{

src/RuleSet/RuleSet.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,7 @@ protected function renderRules(OutputFormat $outputFormat): string
305305
}
306306

307307
/**
308-
* @param array<int<0, max>, Comment> $comments
308+
* @param list<Comment> $comments
309309
*/
310310
public function addComments(array $comments): void
311311
{

0 commit comments

Comments
 (0)