forked from thephpleague/period
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathphpstan.src.neon
More file actions
26 lines (26 loc) · 1.84 KB
/
phpstan.src.neon
File metadata and controls
26 lines (26 loc) · 1.84 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:
- vendor/phpstan/phpstan-strict-rules/rules.neon
parameters:
checkGenericClassInNonGenericObjectType: false
checkMissingIterableValueType: false
ignoreErrors:
# Allow iterating over a DateInterval object to enable clean class extension
- message: '#Argument of an invalid type DateInterval supplied for foreach, only iterables are supported.#'
path: src/Duration.php
- message: '#Strict comparison using === between false and DateInterval will always evaluate to false.#'
path: src/Duration.php
- message: '#^Variable property access on (.*)?.#'
path: src/Duration.php
- message: '#Return type \(League\\Period\\Duration\|false\) of method League\\Period\\Duration::createFromDateString\(\) should be covariant with return type \(DateInterval\) of method DateInterval::createFromDateString\(\)#'
path: src/Duration.php
- message: '#Parameter \#1 ...\$intervals of class League\\Period\\Sequence constructor expects array<int\, League\\Period\\Period>, array<League\\Period\\Period\|null> given.#'
path: src/Period.php
- message: '#Method League\\Period\\Datepoint::createFromFormat\(\) should return static\(League\\Period\\Datepoint\)\|false but returns League\\Period\\Datepoint.#'
path: src/Datepoint.php
- message: '#Method League\\Period\\Datepoint::createFromMutable\(\) should return static\(League\\Period\\Datepoint\) but returns League\\Period\\Datepoint.#'
path: src/Datepoint.php
- message: '#Instanceof between League\\Period\\Sequence and League\\Period\\Sequence will always evaluate to true.#'
path: src/Chart/Dataset.php
- message: '#Only numeric types are allowed in post-increment, string given.#'
path: src/Chart/LatinLetter.php
reportUnmatchedIgnoredErrors: true