forked from briannesbitt/Carbon
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathphpstan.neon
17 lines (17 loc) · 1.17 KB
/
phpstan.neon
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
parameters:
ignoreErrors:
- '#^Call to an undefined static method#'
- '#^Static call to instance method#'
- '#^Method Carbon\\Carbon(Interface|Immutable)?::(add|sub)[A-Z][A-Za-z]+\(\) invoked with 1 parameter, 0 required\.#'
- '#^Using \$this in static method Carbon\\Carbon(Interface|Immutable|Interval|Period)?::loadMixinTrait\(\)\.$#'
- '#^Variable \$this in isset\(\) always exists and is not nullable\.$#'
- '#^Call to an undefined method Carbon\\Carbon(Interface|Immutable)?::(super|noThis)\(\)\.$#'
- '#Class Symfony\\Component\\Translation\\MessageSelector not found\.#'
- '#Class Symfony\\Component\\Translation\\IdentityTranslator does not have a constructor and must be instantiated without any parameters\.#'
- '#Instantiated class Symfony\\Component\\Translation\\MessageSelector not found\.#'
- '#Call to static method set\(\) on an unknown class Symfony\\Component\\Translation\\PluralizationRules\.#'
excludes_analyse:
- '*/src/Carbon/Laravel/ServiceProvider.php'
- '*/tests/Laravel/*.php'
- '*/tests/Cli/*.php'
- '*/tests/CarbonPeriod/Fixtures/filters.php'