diff --git a/config/phpstan-baseline.neon b/config/phpstan-baseline.neon index 47af1164..f783902b 100644 --- a/config/phpstan-baseline.neon +++ b/config/phpstan-baseline.neon @@ -174,12 +174,6 @@ parameters: count: 2 path: ../src/Parsing/ParserState.php - - - message: '#^Parameters should have "string" types as the only types passed to this method$#' - identifier: typePerfect.narrowPublicClassMethodParamType - count: 1 - path: ../src/Parsing/ParserState.php - - message: '#^Parameters should have "string\|int\|null" types as the only types passed to this method$#' identifier: typePerfect.narrowPublicClassMethodParamType diff --git a/src/Parsing/ParserState.php b/src/Parsing/ParserState.php index 01658820..6f29d1d8 100644 --- a/src/Parsing/ParserState.php +++ b/src/Parsing/ParserState.php @@ -68,10 +68,8 @@ public function __construct($text, Settings $parserSettings, $lineNumber = 1) /** * Sets the charset to be used if the CSS does not contain an `@charset` declaration. - * - * @param string $charset */ - public function setCharset($charset): void + public function setCharset(string $charset): void { $this->charset = $charset; $this->characters = $this->strsplit($this->text);