@@ -24,7 +24,7 @@ public function testWalker(string $dql, callable $configureQueryCallback, ?strin
24
24
{
25
25
if ($ expectedError !== null ) {
26
26
$ this ->expectException (LogicException::class);
27
- $ this ->expectExceptionMessageMatches ($ expectedError );
27
+ $ this ->expectExceptionMessageRegExp ($ expectedError );
28
28
}
29
29
30
30
$ entityManagerMock = $ this ->createEntityManagerMock ();
@@ -105,7 +105,7 @@ static function (Query $query): void {
105
105
static function (Query $ query ): void {
106
106
$ query ->setHint (
107
107
UseIndexSqlWalker::class,
108
- [IndexHint::use ('IDX_FOO ' , Account::TABLE_NAME , 'a ' )],
108
+ [IndexHint::use ('IDX_FOO ' , Account::TABLE_NAME , 'a ' )]
109
109
);
110
110
},
111
111
'SELECT u0_.id AS id_0, u0_.account_id AS account_id_1 '
@@ -121,7 +121,7 @@ static function (Query $query): void {
121
121
[
122
122
IndexHint::use ('IDX_FOO ' , Account::TABLE_NAME , 'a ' ),
123
123
IndexHint::ignore ('IDX_BAR ' , Account::TABLE_NAME , 'a ' ),
124
- ],
124
+ ]
125
125
);
126
126
},
127
127
'SELECT u0_.id AS id_0, u0_.account_id AS account_id_1 '
@@ -137,7 +137,7 @@ static function (Query $query): void {
137
137
[
138
138
IndexHint::use ('IDX_FOO ' , Account::TABLE_NAME , 'a ' ),
139
139
IndexHint::use ('IDX_BAR ' , Account::TABLE_NAME , 'a ' ),
140
- ],
140
+ ]
141
141
);
142
142
},
143
143
'SELECT u0_.id AS id_0, u0_.account_id AS account_id_1 '
@@ -155,7 +155,7 @@ static function (Query $query): void {
155
155
IndexHint::use ('IDX_FOO ' , Account::TABLE_NAME , 'a ' ),
156
156
IndexHint::use ('IDX_BAR ' , Account::TABLE_NAME , 'ma ' ),
157
157
IndexHint::use ('IDX_BAZ ' , Account::TABLE_NAME , 'ma ' ),
158
- ],
158
+ ]
159
159
);
160
160
},
161
161
'SELECT u0_.id AS id_0, u0_.account_id AS account_id_1 '
@@ -193,7 +193,7 @@ static function (Query $query): void {
193
193
UseIndexSqlWalker::class,
194
194
[
195
195
IndexHint::use ('IDX_FOO ' , 'unknown_table ' ),
196
- ],
196
+ ]
197
197
);
198
198
},
199
199
null ,
@@ -207,7 +207,7 @@ static function (Query $query): void {
207
207
UseIndexSqlWalker::class,
208
208
[
209
209
IndexHint::use ('IDX_FOO ' , User::TABLE_NAME , 'unknown_alias ' ),
210
- ],
210
+ ]
211
211
);
212
212
},
213
213
null ,
@@ -219,7 +219,7 @@ static function (Query $query): void {
219
219
static function (Query $ query ): void {
220
220
$ query ->setHint (
221
221
UseIndexSqlWalker::class,
222
- IndexHint::use ('IDX_FOO ' , User::TABLE_NAME ),
222
+ IndexHint::use ('IDX_FOO ' , User::TABLE_NAME )
223
223
);
224
224
},
225
225
null ,
@@ -233,7 +233,7 @@ static function (Query $query): void {
233
233
UseIndexSqlWalker::class,
234
234
[
235
235
new stdClass (),
236
- ],
236
+ ]
237
237
);
238
238
},
239
239
null ,
@@ -245,7 +245,7 @@ static function (Query $query): void {
245
245
static function (Query $ query ): void {
246
246
$ query ->setHint (
247
247
UseIndexSqlWalker::class,
248
- [IndexHint::use ('IDX_FOO ' , Account::TABLE_NAME )],
248
+ [IndexHint::use ('IDX_FOO ' , Account::TABLE_NAME )]
249
249
);
250
250
},
251
251
null ,
0 commit comments