-
Notifications
You must be signed in to change notification settings - Fork 26
/
phpstan.neon.dist
27 lines (26 loc) · 2.25 KB
/
phpstan.neon.dist
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
includes:
- phpstan-extension.neon
parameters:
level: 5
paths:
- src
- tests
ignoreErrors:
# Laravel does not know of lateral joins and probably wouldn't merge a PR extending all join types with expressions
- message: "#^Parameter \\#3 \\$table of method Illuminate\\\\Database\\\\Query\\\\Builder\\:\\:newJoinClause\\(\\) expects string, Illuminate\\\\Database\\\\Query\\\\Expression given\\.$#"
path: src/Query/Builder.php
# The eloquent builder mixin is calling protected methods because it's part of the builder object
- message: "#^Call to protected method addTimestampsToUpsertValues\\(\\) of class Illuminate\\\\Database\\\\Eloquent\\\\Builder<Illuminate\\\\Database\\\\Eloquent\\\\Model>\\.$#"
path: src/Eloquent/Mixins/BuilderReturning.php
- message: "#^Call to protected method addUpdatedAtToUpsertColumns\\(\\) of class Illuminate\\\\Database\\\\Eloquent\\\\Builder<Illuminate\\\\Database\\\\Eloquent\\\\Model>\\.$#"
path: src/Eloquent/Mixins/BuilderReturning.php
- message: "#^Call to protected method addUpdatedAtColumn\\(\\) of class Illuminate\\\\Database\\\\Eloquent\\\\Builder<Illuminate\\\\Database\\\\Eloquent\\\\Model>\\.$#"
path: src/Eloquent/Mixins/BuilderReturning.php
# It's impossible to statically test whether a class uses an trait in PHPStan
- message: "#^Call to an undefined method Illuminate\\\\Database\\\\Migrations\\\\Migration\\:\\:timeoutDown\\(\\)\\.$#"
path: src/Support/Helpers/ZeroDowntimeMigrationSupervisor.php
- message: "#^Call to an undefined method Illuminate\\\\Database\\\\Migrations\\\\Migration\\:\\:timeoutUp\\(\\)\\.$#"
path: src/Support/Helpers/ZeroDowntimeMigrationSupervisor.php
# The compileAdd() method should return a string which will be cast to an array. As two queries need to be generated an array is returned
- message: "#^Return type \\(array\\<int, string\\>\\) of method Tpetry\\\\PostgresqlEnhanced\\\\Schema\\\\Grammars\\\\Grammar\\:\\:compileAdd\\(\\) should be compatible with return type \\(string\\) of method Illuminate\\\\Database\\\\Schema\\\\Grammars\\\\PostgresGrammar\\:\\:compileAdd\\(\\)$#"
path: src/Schema/Grammars/Grammar.php