forked from scssphp/scssphp
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathphpstan.neon
More file actions
23 lines (21 loc) · 1.22 KB
/
Copy pathphpstan.neon
File metadata and controls
23 lines (21 loc) · 1.22 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
parameters:
level: 8
treatPhpDocTypesAsCertain: false
paths:
- ./src/
ignoreErrors:
# This variable is modified by reference in some Closure and may be assigned null later. Without this type, phpstan does not detect it properly.
-
message: '#^PHPDoc tag @var with type ScssPhp\\ScssPhp\\Ast\\Sass\\Expression\|null is not subtype of native type ScssPhp\\ScssPhp\\Ast\\Sass\\Expression\.$#'
path: src/Parser/StylesheetParser.php
# Ignore errors about not specifying the array iterable type for legacy AST nodes
-
message: "#^Method ScssPhp\\\\ScssPhp\\\\Compiler\\\\LegacyValueVisitor\\:\\:visit[\\w]+\\(\\) return type has no value type specified in iterable type array\\.$#"
path: src/Compiler/LegacyValueVisitor.php
-
message: "#^Method ScssPhp\\\\ScssPhp\\\\Compiler\\\\LegacyValueVisitor\\:\\:visit[\\w]+\\(\\) never returns (ScssPhp\\\\ScssPhp\\\\Node\\\\Number|array) so it can be removed from the return type\\.$#"
path: src/Compiler/LegacyValueVisitor.php
includes:
- vendor/phpstan/phpstan/conf/bleedingEdge.neon
- vendor/phpstan/phpstan-deprecation-rules/rules.neon
- phpstan-baseline.neon