Skip to content

Commit 2be1044

Browse files
authored
[TASK] Add formal type parameter to ParserState::setCharset() (#958)
1 parent cff67f0 commit 2be1044

File tree

2 files changed

+1
-9
lines changed

2 files changed

+1
-9
lines changed

config/phpstan-baseline.neon

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -174,12 +174,6 @@ parameters:
174174
count: 2
175175
path: ../src/Parsing/ParserState.php
176176

177-
-
178-
message: '#^Parameters should have "string" types as the only types passed to this method$#'
179-
identifier: typePerfect.narrowPublicClassMethodParamType
180-
count: 1
181-
path: ../src/Parsing/ParserState.php
182-
183177
-
184178
message: '#^Parameters should have "string\|int\|null" types as the only types passed to this method$#'
185179
identifier: typePerfect.narrowPublicClassMethodParamType

src/Parsing/ParserState.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,10 +68,8 @@ public function __construct($text, Settings $parserSettings, $lineNumber = 1)
6868

6969
/**
7070
* Sets the charset to be used if the CSS does not contain an `@charset` declaration.
71-
*
72-
* @param string $charset
7371
*/
74-
public function setCharset($charset): void
72+
public function setCharset(string $charset): void
7573
{
7674
$this->charset = $charset;
7775
$this->characters = $this->strsplit($this->text);

0 commit comments

Comments
 (0)