-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathphpstan.neon
More file actions
26 lines (24 loc) · 1.31 KB
/
Copy pathphpstan.neon
File metadata and controls
26 lines (24 loc) · 1.31 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
includes:
- phpstan-baseline.neon
parameters:
# Анализируем под МИНИМАЛЬНУЮ поддерживаемую версию: на машине разработчика
# стоит 8.5, и синтаксис новее 8.2 проходит локально, а сборка падает
# разбором файла. Так и случилось с типизированными константами (8.3+).
phpVersion: 80200
ignoreErrors:
# These fire inside the AddsBlockContent/AddsInlineContent traits;
# PHPStan attributes trait findings to whichever using class it
# analysed first, so a path-pinned baseline entry flaps between
# runs. Ignored path-independently instead.
-
message: '#^Instanceof between Dskripchenko\\PhpDocx\\Element\\BlockElement and Dskripchenko\\PhpDocx\\Element\\BlockElement will always evaluate to true\.$#'
identifier: instanceof.alwaysTrue
reportUnmatched: false
-
message: '#^Instanceof between Dskripchenko\\PhpDocx\\Element\\InlineElement and Dskripchenko\\PhpDocx\\Element\\InlineElement will always evaluate to true\.$#'
identifier: instanceof.alwaysTrue
reportUnmatched: false
level: 8
paths:
- src
excludePaths: []