Skip to content

Commit b3abf1a

Browse files
authored
[TASK] Use native type declarations in AtRuleBlockList (#1000)
Part of #811
1 parent 577b99a commit b3abf1a

File tree

2 files changed

+4
-12
lines changed

2 files changed

+4
-12
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ Please also have a look at our
2727
- Make all non-private properties `@internal` (#886)
2828
- Use more native type declarations and strict mode
2929
(#641, #772, #774, #778, #804, #841, #873, #875, #891, #922, #923, #933, #958,
30-
#964, #967)
30+
#964, #967, #1000)
3131
- Add visibility to all class/interface constants (#469)
3232

3333
### Deprecated

src/CSSList/AtRuleBlockList.php

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -23,29 +23,21 @@ class AtRuleBlockList extends CSSBlockList implements AtRule
2323
private $arguments;
2424

2525
/**
26-
* @param string $type
27-
* @param string $arguments
2826
* @param int<0, max> $lineNumber
2927
*/
30-
public function __construct($type, $arguments = '', $lineNumber = 0)
28+
public function __construct(string $type, string $arguments = '', int $lineNumber = 0)
3129
{
3230
parent::__construct($lineNumber);
3331
$this->type = $type;
3432
$this->arguments = $arguments;
3533
}
3634

37-
/**
38-
* @return string
39-
*/
40-
public function atRuleName()
35+
public function atRuleName(): string
4136
{
4237
return $this->type;
4338
}
4439

45-
/**
46-
* @return string
47-
*/
48-
public function atRuleArgs()
40+
public function atRuleArgs(): string
4941
{
5042
return $this->arguments;
5143
}

0 commit comments

Comments
 (0)