forked from briannesbitt/Carbon
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathphpstan.neon
41 lines (41 loc) · 2.42 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
39
40
41
parameters:
scanFiles:
- lazy/Carbon/PHPStan/MacroStrongType.php
- lazy/Carbon/TranslatorStrongType.php
- vendor/autoload.php
level: 3
paths:
- src
- tests
parallel:
processTimeout: 300.0
ignoreErrors:
- '#^Call to an undefined static method#'
- '#^Unsafe usage of new static\(\)\.#'
- '#^Method Carbon\\Carbon(Interface|Immutable)?::(add|sub)[A-Z][A-Za-z]+\(\) invoked with 1 parameter, 0 required\.#'
- '#^Call to an undefined method Carbon\\Carbon(Interface|Immutable)?::(super|noThis)\(\)\.$#'
- '#Call to an undefined method DateTimeInterface::setTimezone\(\)\.#'
- '#should return (\S*)(static|\$this)\(Carbon\\CarbonPeriod\) but returns Carbon\\CarbonPeriod\.$#'
- '#should return (\S*)(static|\$this)\(Carbon\\Carbon\) but returns Carbon\\Carbon(Interface)?\.$#'
- '#should return (\S*)(static|\$this)\(Carbon\\CarbonImmutable\) but returns Carbon\\Carbon(Immutable|Interface)\.$#'
- '#should return (\S*)\$this\(Carbon\\CarbonPeriod\) but returns static\(Carbon\\CarbonPeriod\)\.$#'
- '#should return (\S*)\$this\(Carbon\\Carbon\) but returns static\(Carbon\\Carbon(Interface)?\)\.$#'
- '#should return (\S*)\$this\(Carbon\\CarbonInterval\) but returns static\(Carbon\\CarbonInterval\)\.$#'
- '#should return (\S*)\$this\(Carbon\\CarbonImmutable\) but returns static\(Carbon\\Carbon(Immutable|Interface)\)\.$#'
- '#^PHPDoc tag @mixin contains invalid type Carbon\\Traits\\DeprecatedProperties\.$#'
- '#^Implementing PHPStan\\Reflection\\Php\\BuiltinMethodReflection is not covered by backward compatibility promise\.#'
- '#^Calling PHPStan\\Reflection\\Php\\PhpMethodReflectionFactory::create\(\) is not covered by backward compatibility promise\.#'
excludePaths:
- '*/src/Carbon/Laravel/ServiceProvider.php'
- '*/src/Carbon/PHPStan/Macro.php'
- '*/tests/Carbon/Fixtures/DumpCarbon.php'
- '*/tests/Carbon/LocalizationTest.php'
- '*/tests/Carbon/SerializationTest.php'
- '*/tests/CarbonImmutable/LocalizationTest.php'
- '*/tests/CarbonImmutable/SetStateTest.php'
- '*/tests/CarbonImmutable/SerializationTest.php'
- '*/tests/Laravel/*.php'
- '*/tests/Cli/*.php'
- '*/tests/CarbonPeriod/Fixtures/filters.php'
- '*/tests/Fixtures/dynamicInterval.php'
- '*/tests/PHPStan/*.php'