diff --git a/CHANGELOG.md b/CHANGELOG.md index 90c6d35a..44a3697a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -26,7 +26,7 @@ Please also have a look at our - Only allow `string` for some `OutputFormat` properties (#885) - Make all non-private properties `@internal` (#886) - Use more native type declarations and strict mode - (#641, #772, #774, #778, #804, #841, #873, #875, #891, #922, #923) + (#641, #772, #774, #778, #804, #841, #873, #875, #891, #922, #923, #933) - Add visibility to all class/interface constants (#469) ### Deprecated diff --git a/src/Settings.php b/src/Settings.php index c684a690..1765aafa 100644 --- a/src/Settings.php +++ b/src/Settings.php @@ -46,10 +46,7 @@ private function __construct() $this->bMultibyteSupport = \extension_loaded('mbstring'); } - /** - * @return self new instance - */ - public static function create(): Settings + public static function create(): self { return new Settings(); } @@ -60,11 +57,9 @@ public static function create(): Settings * If `true` (`mbstring` extension must be enabled), will use (slower) `mb_strlen`, `mb_convert_case`, `mb_substr` * and `mb_strpos` functions. Otherwise, the normal (ASCII-Only) functions will be used. * - * @param bool $bMultibyteSupport - * * @return $this fluent interface */ - public function withMultibyteSupport($bMultibyteSupport = true): self + public function withMultibyteSupport(bool $bMultibyteSupport = true): self { $this->bMultibyteSupport = $bMultibyteSupport; return $this; @@ -73,11 +68,9 @@ public function withMultibyteSupport($bMultibyteSupport = true): self /** * Sets the charset to be used if the CSS does not contain an `@charset` declaration. * - * @param string $sDefaultCharset - * * @return $this fluent interface */ - public function withDefaultCharset($sDefaultCharset): self + public function withDefaultCharset(string $sDefaultCharset): self { $this->sDefaultCharset = $sDefaultCharset; return $this; @@ -86,11 +79,9 @@ public function withDefaultCharset($sDefaultCharset): self /** * Configures whether the parser should silently ignore invalid rules. * - * @param bool $usesLenientParsing - * * @return $this fluent interface */ - public function withLenientParsing($usesLenientParsing = true): self + public function withLenientParsing(bool $usesLenientParsing = true): self { $this->bLenientParsing = $usesLenientParsing; return $this;