File: phpstan.neon

package info (click to toggle)
php-phpdocumentor-type-resolver 2.0.0-1
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 2,684 kB
  • sloc: php: 27,998; xml: 102; makefile: 47
file content (38 lines) | stat: -rw-r--r-- 1,623 bytes parent folder | download
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
27
28
29
30
31
32
33
34
35
36
37
38
parameters:
    bootstrapFiles:
        - src/PseudoTypes/False_.php
        - src/PseudoTypes/True_.php
    level: max
    excludePaths:
        - tests/benchmark/Assets/*
    paths:
        - src
        - tests
    ignoreErrors:
        # We are intentionally using non-existing classes here

        -
            message: "#^Class phpDocumentor\\\\Reflection\\\\DocBlock not found#"
            count: 1
            path: tests/unit/Types/ContextFactoryTest.php
        -
            message: "#^Class phpDocumentor\\\\Reflection\\\\DocBlock\\\\Tag not found#"
            count: 1
            path: tests/unit/Types/ContextFactoryTest.php

        # We are intentionally adding invalid parameters here
        -
            message: "#^Parameter \\#2 \\$typeClassName of method phpDocumentor\\\\Reflection\\\\TypeResolver\\:\\:addKeyword\\(\\) expects class\\-string\\<phpDocumentor\\\\Reflection\\\\Type\\>\\, string given\\.$#"
            count: 2
            path: tests/unit/TypeResolverTest.php

        # We are intentionally adding invalid parameters here
        -
            message: "#^Parameter \\#1 \\$types of class phpDocumentor\\\\Reflection\\\\Types\\\\Compound constructor expects array\\<phpDocumentor\\\\Reflection\\\\Type\\>\\, array\\<int\\, string\\> given\\.$#"
            count: 1
            path: tests/unit/Types/CompoundTest.php

        -
            message: "#^Parameter \\#1 \\$objectOrClass of class ReflectionClass constructor expects class\\-string\\<Foo\\\\Bar\\>\\|Foo\\\\Bar\\, string given\\.$#"
            count: 1
            path: tests/unit/Types/ContextFactoryTest.php