-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
phpstan.neon
32 lines (28 loc) · 1.28 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
includes:
- vendor/nunomaduro/larastan/extension.neon
- vendor/bensampo/laravel-enum/extension.neon
parameters:
level: 1
paths:
- benchmarks
- src
- tests
excludes_analyse:
- %rootDir%/../../../tests/database/*
# Compatibility fix because Laravel moved the TestResponse class
- %rootDir%/../../../tests/TestCase.php
- %rootDir%/../../../tests/Laravel7ExceptionHandler.php
- %rootDir%/../../../tests/PreLaravel7ExceptionHandler.php
ignoreErrors:
# Some parts of Laravel are just really magical
- '#Call to an undefined static method Illuminate\\Support\\Facades\\Event::assertDispatched\(\)\.#'
- '#Function factory invoked with 2 parameters, 0 required\.#'
- '#Function factory invoked with 1 parameter, 0 required\.#'
# This is a library, so it should be extendable
- '#Unsafe usage of new static.*#'
# Compatibility fix because Laravel moved the TestResponse class
- '#.*TestResponse.*#'
# We are monkeypatching that to pass around the query builder
- '#Access to an undefined property GraphQL\\Type\\Definition\\ResolveInfo::\$builder\.#'
# TODO remove once we no longer support PHPUnit 7
- '#Parameter \$invocationOrder of method Tests\\TestCase::mockResolverExpects\(\) has invalid typehint type PHPUnit\\Framework\\MockObject\\Rule\\InvocationOrder\.#'