@@ -2,50 +2,14 @@ includes:
22 - src/main/resources/phpstan/bovigo-assert.neon
33parameters:
44 inferPrivatePropertyTypeFromConstructor: true
5- level: 8
5+ level: 9
66 paths:
7- - ./src
7+ - src/main/php/
8+ - src/test/php/
89 excludePaths:
910 - src/main/php/phpunit/TestCase.php
10- ignoreErrors:
11- # False positives
12- -
13- message: '#Parameter (.)+ of method bovigo\\assert\\Expectation::throws\(\) expects (.)+, int given#'
14- path: src/test/php/ExpectationTest.php
15- -
16- message: '#function bovigo\\assert\\predicate\\hasKey expects int\|string, array given#'
17- path: src/test/php/predicate/HasKeyTest.php
18- -
19- message: '#method bovigo\\assert\\predicate\\IsOfSize::traversable\(\) expects Iterator\|IteratorAggregate, Traversable<mixed, mixed> given#'
20- path: src/main/php/predicate/IsOfSize.php
21- -
22- message: '#Method bovigo\\assert\\predicate\\IteratingPredicate::traversable\(\) should return array\|Iterator but returns iterable#'
23- path: src/main/php/predicate/IteratingPredicate.php
24- -
25- message: '#of class bovigo\\assert\\predicate\\CallablePredicate constructor expects callable\(\): mixed, string given#'
26- path: src/main/php/predicate/predicates.php
27- -
28- message: '#of function bovigo\\assert\\expect expects callable\(\): mixed, array\(bovigo\\assert\\predicate\\PredicateFooExample, .+\) given#'
29- path: src/test/php/predicate/PredicateTest.php
30- -
31- message: '#Result of && is always false#'
32- path: src/main/php/predicate/HasKey.php
33- -
34- message: '#Method bovigo\\assert\\predicate\\IsOfSize::sizeOf\(\) has parameter \$value with no value type specified in iterable type#'
35- path: src/main/php/predicate/IsOfSize.php
36- -
37- message: '#Method bovigo\\assert\\predicate\\IsOfSize::traversable\(\) has parameter \$traversable with no value type specified in iterable type#'
38- path: src/main/php/predicate/IsOfSize.php
39- -
40- message: '#Method bovigo\\assert\\predicate\\IsOfSize::traversable\(\) return type has no value type specified in iterable type Iterator#'
41- path: src/main/php/predicate/IsOfSize.php
42- -
43- message: '#Method bovigo\\assert\\predicate\\IteratingPredicate(.)+ has parameter (.)+ with no value type specified in iterable type#'
44- path: src/main/php/predicate/IteratingPredicate.php
45- -
46- message: '#Method bovigo\\assert\\predicate\\IteratingPredicate::traversable\(\) return type has no value type specified in iterable type#'
47- path: src/main/php/predicate/IteratingPredicate.php
48- # called method will return bool with third parameter set to true
49- -
50- message: '#Method bovigo\\assert\\phpunit\\ConstraintAdapter::test\(\) should return bool but returns bool\|null#'
51- path: src/main/php/phpunit/ConstraintAdapter.php
11+ # predicates cause some kind of problem for phpstan
12+ # Scanning the files each on their own doesn't reveal any problem,
13+ # but scanning the whole folder does. Ignoring for now.
14+ - src/main/php/predicate
15+ - src/test/php/predicate
0 commit comments