forked from ddeboer/imap
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathphpstan.neon
38 lines (37 loc) · 1.92 KB
/
phpstan.neon
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
includes:
- phar://phpstan.phar/conf/config.levelmax.neon
- vendor/phpstan/phpstan-strict-rules/rules.neon
- vendor/phpstan/phpstan-phpunit/extension.neon
parameters:
checkGenericClassInNonGenericObjectType: false
checkMissingIterableValueType: false
tmpDir: tmp/
paths:
- src/
- tests/
ignoreErrors:
- '#Short ternary operator is not allowed. Use null coalesce operator if applicable or consider using long ternary#'
-
message: '#Method .+ has no return typehint specified#'
path: %currentWorkingDirectory%/src/
-
message: '#Argument of an invalid type array\|null supplied for foreach, only iterables are supported#'
path: %currentWorkingDirectory%/src/Connection.php
-
message: '#Offset string does not exist on array\|null#'
path: %currentWorkingDirectory%/src/Connection.php
-
message: '#Call to function base64_decode\(\) requires parameter \#2 to be true#'
path: %currentWorkingDirectory%/src/Message/AbstractPart.php
-
message: '#Strict comparison using === between false and string will always evaluate to false#'
path: %currentWorkingDirectory%/src/Message/AbstractPart.php
-
message: '#Parameter \#1 \$resource of class Ddeboer\\Imap\\ImapResource constructor expects resource, string given#'
path: %currentWorkingDirectory%/tests/ConnectionTest.php
-
message: '#Call to static method PHPUnit\\Framework\\Assert::assertInstanceOf\(\) with .+ and Ddeboer\\Imap\\Message\\EmailAddress will always evaluate to true#'
path: %currentWorkingDirectory%/tests/MessageTest.php
-
message: '#Call to static method PHPUnit\\Framework\\Assert::assertIsInt\(\) with int will always evaluate to true#'
path: %currentWorkingDirectory%/tests/ConnectionTest.php