Skip to content

Commit 30df4c5

Browse files
committed
PhpStan: Ignore false-positive
1 parent 47f5ad6 commit 30df4c5

File tree

1 file changed

+14
-4
lines changed

1 file changed

+14
-4
lines changed

phpstan.neon

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,21 @@ parameters:
66
- src/Plugin/JWT/*
77

88
ignoreErrors:
9-
-
9+
- # Too variants of parameters signature between PHP versions
1010
message: '#Parameter \#3 \$options of function setcookie expects .+#'
11+
reportUnmatched: false
1112
path: src/Enabler.php
1213
count: 2
13-
- '#.+ has unknown class (OpenSSLAsymmetricKey|OpenSSLCertificate) as its type.#' # PHP 7 compatibility
14-
- '#.+ has invalid type (OpenSSLAsymmetricKey|OpenSSLCertificate).#' # PHP 7 compatibility
1514

16-
reportUnmatchedIgnoredErrors: false
15+
- # Weird bug by PhpStan - the `path` fiealt is still nullable
16+
message: '#Offset ''path'' on array.+ on left side of \?\? always exists and is not nullable\.#'
17+
path: src/Plugin/SignedUrl.php
18+
count: 1
19+
20+
-
21+
message: '#.+ has unknown class (OpenSSLAsymmetricKey|OpenSSLCertificate) as its type.#' # PHP 7 compatibility
22+
reportUnmatched: false
23+
24+
-
25+
message: '#.+ has invalid type (OpenSSLAsymmetricKey|OpenSSLCertificate).#' # PHP 7 compatibility
26+
reportUnmatched: false

0 commit comments

Comments
 (0)