Skip to content

Commit ceec94e

Browse files
authored
[BUGFIX] Add missing imports for @throws annotations (#897)
1 parent 5c440f3 commit ceec94e

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

config/phpstan-baseline.neon

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -180,12 +180,6 @@ parameters:
180180
count: 1
181181
path: ../src/RuleSet/RuleSet.php
182182

183-
-
184-
message: '#^PHPDoc tag @throws with type Sabberworm\\CSS\\Value\\SourceException\|Sabberworm\\CSS\\Value\\UnexpectedEOFException\|Sabberworm\\CSS\\Value\\UnexpectedTokenException is not subtype of Throwable$#'
185-
identifier: throws.notThrowable
186-
count: 3
187-
path: ../src/Value/CSSFunction.php
188-
189183
-
190184
message: '#^Call to an undefined method Sabberworm\\CSS\\OutputFormat\:\:implode\(\)\.$#'
191185
identifier: method.notFound

src/Value/CSSFunction.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@
66

77
use Sabberworm\CSS\OutputFormat;
88
use Sabberworm\CSS\Parsing\ParserState;
9+
use Sabberworm\CSS\Parsing\SourceException;
10+
use Sabberworm\CSS\Parsing\UnexpectedEOFException;
11+
use Sabberworm\CSS\Parsing\UnexpectedTokenException;
912

1013
/**
1114
* A `CSSFunction` represents a special kind of value that also contains a function name and where the values are the

0 commit comments

Comments
 (0)