Skip to content

Commit 681fef6

Browse files
authored
[TASK] Use native type declarations in Parser (#1140)
Part of #811
1 parent ff247ef commit 681fef6

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ Please also have a look at our
3232
- Make all non-private properties `@internal` (#886)
3333
- Use more native type declarations and strict mode
3434
(#641, #772, #774, #778, #804, #841, #873, #875, #891, #922, #923, #933, #958,
35-
#964, #967, #1000, #1044, #1134, #1136, #1137, #1139)
35+
#964, #967, #1000, #1044, #1134, #1136, #1137, #1139, #1140)
3636
- Add visibility to all class/interface constants (#469)
3737

3838
### Deprecated

src/Parser.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ class Parser
2222
* @param string $text the complete CSS as text (i.e., usually the contents of a CSS file)
2323
* @param int<1, max> $lineNumber the line number (starting from 1, not from 0)
2424
*/
25-
public function __construct($text, ?Settings $parserSettings = null, int $lineNumber = 1)
25+
public function __construct(string $text, ?Settings $parserSettings = null, int $lineNumber = 1)
2626
{
2727
if ($parserSettings === null) {
2828
$parserSettings = Settings::create();

0 commit comments

Comments
 (0)