-
-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathphpstan.neon
More file actions
43 lines (34 loc) · 1.64 KB
/
Copy pathphpstan.neon
File metadata and controls
43 lines (34 loc) · 1.64 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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
includes:
- vendor/contributte/phpstan/phpstan.neon
parameters:
level: 9
phpVersion: 80200
scanDirectories:
- src
fileExtensions:
- php
paths:
- src
ignoreErrors:
# curl_exec returns result thanks to option CURLOPT_RETURNTRANSFER - wtf is that api?
- '#^Method Contributte\\Fio\\Http\\HttpClient\:\:sendRequest\(\) should return string but returns string\|true\.$#'
# Probably bug, LibXMLError does not use Throwable
- '#^Parameter \#3 \$previous of class Contributte\\Fio\\Exceptions\\InvalidResponseException constructor expects Throwable\|null, LibXMLError given\.$#'
# HttpClient curl_setopt type issues
- '#^Parameter \#3 \$value of function curl_setopt expects non-empty-string, string given\.$#'
- '#^Parameter \#3 \$value of function curl_setopt expects non-empty-string\|null, string given\.$#'
- '#^Parameter \#3 \$value of function curl_setopt expects bool, int given\.$#'
- '#^Offset .uri. might not exist on array\{#'
- '#^Parameter \#1 \$message of class Contributte\\Fio\\Exceptions\\IOException constructor expects string, string\|null given\.$#'
# SimpleXMLElement property access
- '#^Access to an undefined property iterable<SimpleXMLElement>&Traversable::\$#'
# ExportXmlGenerator mixed type issues
-
message: '#^Argument of an invalid type mixed supplied for foreach, only iterables are supported\.$#'
path: src/Utils/ExportXmlGenerator.php
-
message: '#^Parameter \#1 \$qualifiedName of method SimpleXMLElement::addChild\(\) expects string, mixed given\.$#'
path: src/Utils/ExportXmlGenerator.php
-
message: '#^Cannot cast mixed to string\.$#'
path: src/Utils/ExportXmlGenerator.php