You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 8c45003
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: phpstan.neon.dist
+1-8Lines changed: 1 addition & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -3,42 +3,35 @@ parameters:
3
3
paths:
4
4
- src
5
5
- tests
6
+
tmpDir: reports/phpstan
6
7
ignoreErrors:
7
8
# DateTimeImmutable::createFromFormat returns DateTimeImmutable|false; the UNIX format 'U' always succeeds for a valid integer, so the false branch is unreachable.
8
9
- identifier: method.nonObject
9
10
path: src/Instant.php
10
-
11
11
# DateTimeImmutable::createFromFormat returns DateTimeImmutable|false; the recomposed wall-clock string is always well-formed, so the false branch is unreachable.
12
12
- identifier: method.nonObject
13
13
path: src/Internal/ZonedShift.php
14
-
15
14
# Collectible is a @template TValue interface; the promoted constructor property $timezones cannot
16
15
# carry a Collectible<Timezone> type parameter because PHPDoc on constructors is prohibited.
17
16
- identifier: missingType.generics
18
17
path: src/Timezones.php
19
-
20
18
# Collectible operations surface as mixed at level max, so return.type fires on three members here:
21
19
# findBy() (mixed narrowed to Timezone by the collection invariant), toStrings() (toArray() yields a
22
20
# less specific iterable value type), and all() (single-pass spread of a non-generic Collectible
23
21
# infers list<mixed> instead of list<Timezone>).
24
22
- identifier: return.type
25
23
path: src/Timezones.php
26
-
27
24
# Collection::createFrom expects iterable<int, mixed>; variadic packed arrays and toArray() results carry less specific keys.
28
25
- identifier: argument.type
29
26
path: src/Timezones.php
30
-
31
27
# PHPDoc is prohibited inside tests/ per documentation rule; suppress missing iterable value-type on data providers.
32
28
- identifier: missingType.iterableValue
33
29
path: tests
34
-
35
30
# PHPDoc is prohibited anywhere inside src/Internal/ per architecture rule. TextDecoder's constructor parameter $decoders is intentionally untyped; suppress missing iterable value-type plus cascading errors from iterating the now-mixed array.
0 commit comments