You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: resolve adapter test failures across all databases
- Fix user:x role management in DocumentTests to ensure testFindBasicChecks
runs without elevated permissions matching original test behavior
- Fix MongoTenantFilter and TenantWrite type mismatch to accept string
tenant IDs matching the base Adapter's int|string|null type
- Convert deprecated @Depends annotations to PHPUnit 12 #[Depends] attributes
- Update PHPStan baseline
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: phpstan-baseline.neon
+2-38Lines changed: 2 additions & 38 deletions
Original file line number
Diff line number
Diff line change
@@ -42,36 +42,6 @@ parameters:
42
42
count:4
43
43
path:src/Database/Adapter/MariaDB.php
44
44
45
-
-
46
-
message:'#^Method Utopia\\Database\\Adapter\\Mongo\:\:getTenantFilters\(\) should return array\<string, array\<int\>\>\|int\|null but returns array\<string, array\<int\|string\>\>\.$#'
47
-
identifier:return.type
48
-
count:2
49
-
path:src/Database/Adapter/Mongo.php
50
-
51
-
-
52
-
message:'#^Method Utopia\\Database\\Adapter\\Mongo\:\:getTenantFilters\(\) should return array\<string, array\<int\>\>\|int\|null but returns int\|string\.$#'
53
-
identifier:return.type
54
-
count:1
55
-
path:src/Database/Adapter/Mongo.php
56
-
57
-
-
58
-
message:'#^Parameter \#1 \$tenant of class Utopia\\Database\\Hook\\MongoTenantFilter constructor expects int\|null, int\|string\|null given\.$#'
59
-
identifier:argument.type
60
-
count:1
61
-
path:src/Database/Adapter/Mongo.php
62
-
63
-
-
64
-
message:'#^Parameter \#1 \$tenant of class Utopia\\Database\\Hook\\TenantWrite constructor expects int, int\|string given\.$#'
65
-
identifier:argument.type
66
-
count:1
67
-
path:src/Database/Adapter/Mongo.php
68
-
69
-
-
70
-
message:'#^Parameter \#2 \$tenants of method Utopia\\Database\\Adapter\\Mongo\:\:getTenantFilters\(\) expects array\<int\>, array\<int\|string\> given\.$#'
71
-
identifier:argument.type
72
-
count:1
73
-
path:src/Database/Adapter/Mongo.php
74
-
75
45
-
76
46
message:'#^Method Utopia\\Database\\Adapter\\Pool\:\:getSchemaIndexes\(\) should return array\<Utopia\\Database\\Document\> but returns mixed\.$#'
77
47
identifier:return.type
@@ -132,12 +102,6 @@ parameters:
132
102
count:1
133
103
path:src/Database/Adapter/SQL.php
134
104
135
-
-
136
-
message:'#^Parameter \#1 \$tenant of class Utopia\\Database\\Hook\\TenantWrite constructor expects int, int\|string given\.$#'
137
-
identifier:argument.type
138
-
count:1
139
-
path:src/Database/Adapter/SQL.php
140
-
141
105
-
142
106
message:'#^Parameter \#2 \$arrays of function array_diff expects an array of values castable to string, array\<int, mixed\> given\.$#'
143
107
identifier:argument.type
@@ -1183,13 +1147,13 @@ parameters:
1183
1147
path:tests/e2e/Adapter/Base.php
1184
1148
1185
1149
-
1186
-
message:'#^Method Utopia\\Database\\Hook\\Lifecycle@anonymous/tests/e2e/Adapter/Scopes/CollectionTests\.php\:1069\:\:__construct\(\) has parameter \$events with no value type specified in iterable type array\.$#'
1150
+
message:'#^Method Utopia\\Database\\Hook\\Lifecycle@anonymous/tests/e2e/Adapter/Scopes/CollectionTests\.php\:1070\:\:__construct\(\) has parameter \$events with no value type specified in iterable type array\.$#'
1187
1151
identifier:missingType.iterableValue
1188
1152
count:1
1189
1153
path:tests/e2e/Adapter/Base.php
1190
1154
1191
1155
-
1192
-
message:'#^Method Utopia\\Database\\Hook\\Lifecycle@anonymous/tests/e2e/Adapter/Scopes/CollectionTests\.php\:1069\:\:__construct\(\) has parameter \$test with no type specified\.$#'
1156
+
message:'#^Method Utopia\\Database\\Hook\\Lifecycle@anonymous/tests/e2e/Adapter/Scopes/CollectionTests\.php\:1070\:\:__construct\(\) has parameter \$test with no type specified\.$#'
0 commit comments