Skip to content

Commit 134caf3

Browse files
committed
chore: update dependencies
1 parent 5a7e940 commit 134caf3

File tree

3 files changed

+119
-22
lines changed

3 files changed

+119
-22
lines changed

composer.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,12 @@
2525
"require-dev": {
2626
"composer/semver": "^3.4",
2727
"friendsofphp/php-cs-fixer": "^2.19.3|^3.5.0",
28+
"larastan/larastan": "^1.0|^2.1|^3.0",
2829
"nesbot/carbon": "^2.7|^3.3",
29-
"nunomaduro/larastan": "^1.0|^2.1",
3030
"orchestra/testbench": "^4.0|^5.0|^6.0|^7.0|^8.0|^9.0",
3131
"phpstan/extension-installer": "^1.1",
32-
"phpstan/phpstan": "^1.5",
33-
"phpunit/phpunit": "^8.5.23|^9.5.13|^10.5",
32+
"phpstan/phpstan": "^1.5|^2.0",
33+
"phpunit/phpunit": "^8.5.23|^9.5.13|^10.5|^11.4",
3434
"ramsey/uuid": "^3.9|^4.7"
3535
},
3636
"autoload": {

phpstan-baseline.neon

Lines changed: 115 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,115 @@
1+
parameters:
2+
ignoreErrors:
3+
-
4+
message: '#^Anonymous function should return Illuminate\\Database\\Eloquent\\Collection but returns Illuminate\\Support\\Collection\<int, object\>\.$#'
5+
identifier: return.type
6+
count: 1
7+
path: src/Eloquent/Mixins/BuilderReturning.php
8+
9+
-
10+
message: '#^Call to an undefined method Illuminate\\Database\\Eloquent\\Builder\:\:forceDeleteReturning\(\)\.$#'
11+
identifier: method.notFound
12+
count: 1
13+
path: src/Eloquent/Mixins/BuilderReturning.php
14+
15+
-
16+
message: '#^Call to protected method addTimestampsToUpsertValues\(\) of class Illuminate\\Database\\Eloquent\\Builder\<Illuminate\\Database\\Eloquent\\Model\>\.$#'
17+
identifier: method.protected
18+
count: 1
19+
path: src/Eloquent/Mixins/BuilderReturning.php
20+
21+
-
22+
message: '#^Call to protected method addUpdatedAtColumn\(\) of class Illuminate\\Database\\Eloquent\\Builder\<Illuminate\\Database\\Eloquent\\Model\>\.$#'
23+
identifier: method.protected
24+
count: 1
25+
path: src/Eloquent/Mixins/BuilderReturning.php
26+
27+
-
28+
message: '#^Call to protected method addUpdatedAtToUpsertColumns\(\) of class Illuminate\\Database\\Eloquent\\Builder\<Illuminate\\Database\\Eloquent\\Model\>\.$#'
29+
identifier: method.protected
30+
count: 1
31+
path: src/Eloquent/Mixins/BuilderReturning.php
32+
33+
-
34+
message: '#^PHPDoc tag @var with type Illuminate\\Database\\Eloquent\\Builder is not subtype of native type \$this\(Tpetry\\PostgresqlEnhanced\\Eloquent\\Mixins\\BuilderReturning\)\.$#'
35+
identifier: varTag.nativeType
36+
count: 1
37+
path: src/Eloquent/Mixins/BuilderReturning.php
38+
39+
-
40+
message: '#^Call to function method_exists\(\) with Tpetry\\PostgresqlEnhanced\\Query\\Grammar and ''setConnection'' will always evaluate to true\.$#'
41+
identifier: function.alreadyNarrowedType
42+
count: 1
43+
path: src/PostgresEnhancedConnection.php
44+
45+
-
46+
message: '#^Call to function method_exists\(\) with Tpetry\\PostgresqlEnhanced\\Schema\\Grammars\\Grammar and ''setConnection'' will always evaluate to true\.$#'
47+
identifier: function.alreadyNarrowedType
48+
count: 1
49+
path: src/PostgresEnhancedConnection.php
50+
51+
-
52+
message: '#^Call to function method_exists\(\) with \$this\(Tpetry\\PostgresqlEnhanced\\Query\\Builder\) and ''applyBeforeQueryCal…'' will always evaluate to true\.$#'
53+
identifier: function.alreadyNarrowedType
54+
count: 7
55+
path: src/Query/Builder.php
56+
57+
-
58+
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\(\)$#'
59+
identifier: method.childReturnType
60+
count: 1
61+
path: src/Schema/Grammars/Grammar.php
62+
63+
-
64+
message: '#^Call to an undefined method Illuminate\\Database\\Migrations\\Migration\:\:timeoutDown\(\)\.$#'
65+
identifier: method.notFound
66+
count: 1
67+
path: src/Support/Helpers/ZeroDowntimeMigrationSupervisor.php
68+
69+
-
70+
message: '#^Call to an undefined method Illuminate\\Database\\Migrations\\Migration\:\:timeoutUp\(\)\.$#'
71+
identifier: method.notFound
72+
count: 1
73+
path: src/Support/Helpers/ZeroDowntimeMigrationSupervisor.php
74+
75+
-
76+
message: '#^Call to an undefined method Illuminate\\Database\\Eloquent\\Builder\<Tpetry\\PostgresqlEnhanced\\Tests\\Eloquent\\Example\>\:\:forceDeleteReturning\(\)\.$#'
77+
identifier: method.notFound
78+
count: 3
79+
path: tests/Eloquent/BuilderReturningTest.php
80+
81+
-
82+
message: '#^Call to function property_exists\(\) with \$this\(Illuminate\\Database\\Migrations\\Migration@anonymous/tests/Migration/ZeroDowntimeMigrationTest\.php\:24\) and ''timeout'' will always evaluate to true\.$#'
83+
identifier: function.alreadyNarrowedType
84+
count: 2
85+
path: tests/Migration/ZeroDowntimeMigrationTest.php
86+
87+
-
88+
message: '#^Call to function property_exists\(\) with \$this\(Illuminate\\Database\\Migrations\\Migration@anonymous/tests/Migration/ZeroDowntimeMigrationTest\.php\:36\) and ''timeout'' will always evaluate to true\.$#'
89+
identifier: function.alreadyNarrowedType
90+
count: 2
91+
path: tests/Migration/ZeroDowntimeMigrationTest.php
92+
93+
-
94+
message: '#^Call to function property_exists\(\) with \$this\(Illuminate\\Database\\Migrations\\Migration@anonymous/tests/Migration/ZeroDowntimeMigrationTest\.php\:45\) and ''timeout'' will always evaluate to true\.$#'
95+
identifier: function.alreadyNarrowedType
96+
count: 2
97+
path: tests/Migration/ZeroDowntimeMigrationTest.php
98+
99+
-
100+
message: '#^Call to function property_exists\(\) with \$this\(Illuminate\\Database\\Migrations\\Migration@anonymous/tests/Migration/ZeroDowntimeMigrationTest\.php\:55\) and ''timeout'' will always evaluate to true\.$#'
101+
identifier: function.alreadyNarrowedType
102+
count: 2
103+
path: tests/Migration/ZeroDowntimeMigrationTest.php
104+
105+
-
106+
message: '#^Call to function property_exists\(\) with \$this\(Illuminate\\Database\\Migrations\\Migration@anonymous/tests/Migration/ZeroDowntimeMigrationTest\.php\:66\) and ''timeout'' will always evaluate to true\.$#'
107+
identifier: function.alreadyNarrowedType
108+
count: 2
109+
path: tests/Migration/ZeroDowntimeMigrationTest.php
110+
111+
-
112+
message: '#^Call to function property_exists\(\) with \$this\(Illuminate\\Database\\Migrations\\Migration@anonymous/tests/Migration/ZeroDowntimeMigrationTest\.php\:70\) and ''timeout'' will always evaluate to true\.$#'
113+
identifier: function.alreadyNarrowedType
114+
count: 2
115+
path: tests/Migration/ZeroDowntimeMigrationTest.php

phpstan.neon.dist

Lines changed: 1 addition & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,9 @@
11
includes:
22
- phpstan-extension.neon
3+
- phpstan-baseline.neon
34

45
parameters:
56
level: 5
67
paths:
78
- src
89
- tests
9-
ignoreErrors:
10-
# Laravel does not know of lateral joins and probably wouldn't merge a PR extending all join types with expressions
11-
- message: "#^Parameter \\#3 \\$table of method Illuminate\\\\Database\\\\Query\\\\Builder\\:\\:newJoinClause\\(\\) expects string, Illuminate\\\\Database\\\\Query\\\\Expression given\\.$#"
12-
path: src/Query/Builder.php
13-
# The eloquent builder mixin is calling protected methods because it's part of the builder object
14-
- message: "#^Call to protected method addTimestampsToUpsertValues\\(\\) of class Illuminate\\\\Database\\\\Eloquent\\\\Builder<Illuminate\\\\Database\\\\Eloquent\\\\Model>\\.$#"
15-
path: src/Eloquent/Mixins/BuilderReturning.php
16-
- message: "#^Call to protected method addUpdatedAtToUpsertColumns\\(\\) of class Illuminate\\\\Database\\\\Eloquent\\\\Builder<Illuminate\\\\Database\\\\Eloquent\\\\Model>\\.$#"
17-
path: src/Eloquent/Mixins/BuilderReturning.php
18-
- message: "#^Call to protected method addUpdatedAtColumn\\(\\) of class Illuminate\\\\Database\\\\Eloquent\\\\Builder<Illuminate\\\\Database\\\\Eloquent\\\\Model>\\.$#"
19-
path: src/Eloquent/Mixins/BuilderReturning.php
20-
# It's impossible to statically test whether a class uses an trait in PHPStan
21-
- message: "#^Call to an undefined method Illuminate\\\\Database\\\\Migrations\\\\Migration\\:\\:timeoutDown\\(\\)\\.$#"
22-
path: src/Support/Helpers/ZeroDowntimeMigrationSupervisor.php
23-
- message: "#^Call to an undefined method Illuminate\\\\Database\\\\Migrations\\\\Migration\\:\\:timeoutUp\\(\\)\\.$#"
24-
path: src/Support/Helpers/ZeroDowntimeMigrationSupervisor.php
25-
# 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
26-
- 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\\(\\)$#"
27-
path: src/Schema/Grammars/Grammar.php

0 commit comments

Comments
 (0)