From 6b4ec7c30e80d6aed6a1a5a0591246fcd208ca01 Mon Sep 17 00:00:00 2001 From: Oliver Klee Date: Mon, 10 Feb 2025 10:05:29 +0100 Subject: [PATCH] [BUGFIX] Add missing imports for `@throws` annotations --- config/phpstan-baseline.neon | 6 ------ src/Value/CSSFunction.php | 3 +++ 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/config/phpstan-baseline.neon b/config/phpstan-baseline.neon index d6dfeec7..81ecb713 100644 --- a/config/phpstan-baseline.neon +++ b/config/phpstan-baseline.neon @@ -180,12 +180,6 @@ parameters: count: 1 path: ../src/RuleSet/RuleSet.php - - - message: '#^PHPDoc tag @throws with type Sabberworm\\CSS\\Value\\SourceException\|Sabberworm\\CSS\\Value\\UnexpectedEOFException\|Sabberworm\\CSS\\Value\\UnexpectedTokenException is not subtype of Throwable$#' - identifier: throws.notThrowable - count: 3 - path: ../src/Value/CSSFunction.php - - message: '#^Call to an undefined method Sabberworm\\CSS\\OutputFormat\:\:implode\(\)\.$#' identifier: method.notFound diff --git a/src/Value/CSSFunction.php b/src/Value/CSSFunction.php index 44635f84..110c9907 100644 --- a/src/Value/CSSFunction.php +++ b/src/Value/CSSFunction.php @@ -6,6 +6,9 @@ use Sabberworm\CSS\OutputFormat; use Sabberworm\CSS\Parsing\ParserState; +use Sabberworm\CSS\Parsing\SourceException; +use Sabberworm\CSS\Parsing\UnexpectedEOFException; +use Sabberworm\CSS\Parsing\UnexpectedTokenException; /** * A `CSSFunction` represents a special kind of value that also contains a function name and where the values are the