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
Copy file name to clipboardExpand all lines: tests/TestCase/Rule/Model/AddAssociationMatchOptionsTypesRuleTest.php
+14-7Lines changed: 14 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -67,12 +67,14 @@ public function testRule(): void
67
67
66,
68
68
],
69
69
[
70
-
'Call to CakeDC\PHPStan\Test\TestCase\Rule\Model\Fake\FailingRuleItemsTable::belongsTo with option "bindingKey" (array<string>|string) does not accept int.',
70
+
'Call to CakeDC\PHPStan\Test\TestCase\Rule\Model\Fake\FailingRuleItemsTable::belongsTo with option "bindingKey" (list<string>|string) does not accept 10.',
71
71
66,
72
+
'Type #1 from the union: 10 is not a list.',
72
73
],
73
74
[
74
-
'Call to CakeDC\PHPStan\Test\TestCase\Rule\Model\Fake\FailingRuleItemsTable::belongsTo with option "foreignKey" (array<string>|string|false) does not accept 11.',
75
+
'Call to CakeDC\PHPStan\Test\TestCase\Rule\Model\Fake\FailingRuleItemsTable::belongsTo with option "foreignKey" (list<string>|string|false) does not accept 11.',
75
76
66,
77
+
'Type #1 from the union: 11 is not a list.',
76
78
],
77
79
[
78
80
'Call to CakeDC\PHPStan\Test\TestCase\Rule\Model\Fake\FailingRuleItemsTable::belongsTo with option "joinType" (string) does not accept int.',
@@ -107,8 +109,9 @@ public function testRule(): void
107
109
85,
108
110
],
109
111
[
110
-
'Call to CakeDC\PHPStan\Test\TestCase\Rule\Model\Fake\FailingRuleItemsTable::belongsToMany with option "targetForeignKey" (array<string>|string|null) does not accept Closure.',
112
+
'Call to CakeDC\PHPStan\Test\TestCase\Rule\Model\Fake\FailingRuleItemsTable::belongsToMany with option "targetForeignKey" (list<string>|string|null) does not accept Closure(): 10.',
111
113
98,
114
+
'Type #1 from the union: Closure(): 10 is not a list.',
112
115
],
113
116
[
114
117
$messageThrough,
@@ -147,12 +150,14 @@ public function testRule(): void
147
150
120,
148
151
],
149
152
[
150
-
'Call to CakeDC\PHPStan\Test\TestCase\Rule\Model\Fake\FailingRuleItemsTable::hasOne with option "bindingKey" (array<string>|string) does not accept int.',
153
+
'Call to CakeDC\PHPStan\Test\TestCase\Rule\Model\Fake\FailingRuleItemsTable::hasOne with option "bindingKey" (list<string>|string) does not accept 10.',
151
154
120,
155
+
'Type #1 from the union: 10 is not a list.',
152
156
],
153
157
[
154
-
'Call to CakeDC\PHPStan\Test\TestCase\Rule\Model\Fake\FailingRuleItemsTable::hasOne with option "foreignKey" (array<string>|string|false) does not accept 11.',
158
+
'Call to CakeDC\PHPStan\Test\TestCase\Rule\Model\Fake\FailingRuleItemsTable::hasOne with option "foreignKey" (list<string>|string|false) does not accept 11.',
155
159
120,
160
+
'Type #1 from the union: 11 is not a list.',
156
161
],
157
162
[
158
163
'Call to CakeDC\PHPStan\Test\TestCase\Rule\Model\Fake\FailingRuleItemsTable::hasOne with option "joinType" (string) does not accept int.',
@@ -215,12 +220,14 @@ public function testRule(): void
215
220
148,
216
221
],
217
222
[
218
-
'Call to Cake\ORM\AssociationCollection::load with option "bindingKey" (array<string>|string) does not accept int.',
223
+
'Call to Cake\ORM\AssociationCollection::load with option "bindingKey" (list<string>|string) does not accept 10.',
219
224
148,
225
+
'Type #1 from the union: 10 is not a list.',
220
226
],
221
227
[
222
-
'Call to Cake\ORM\AssociationCollection::load with option "foreignKey" (array<string>|string|false) does not accept 11.',
228
+
'Call to Cake\ORM\AssociationCollection::load with option "foreignKey" (list<string>|string|false) does not accept 11.',
223
229
148,
230
+
'Type #1 from the union: 11 is not a list.',
224
231
],
225
232
[
226
233
'Call to Cake\ORM\AssociationCollection::load with option "joinType" (string) does not accept int.',
0 commit comments