File tree Expand file tree Collapse file tree 4 files changed +8
-16
lines changed Expand file tree Collapse file tree 4 files changed +8
-16
lines changed Original file line number Diff line number Diff line change 29
29
use function array_values ;
30
30
use function assert ;
31
31
use function count ;
32
- use function func_get_arg ;
33
- use function func_num_args ;
34
32
use function strtolower ;
35
33
36
34
/**
@@ -1204,9 +1202,9 @@ private function getDatabase(string $methodName): string
1204
1202
return $ database ;
1205
1203
}
1206
1204
1207
- public function createComparator (/* ComparatorConfig $config = new ComparatorConfig() */ ): Comparator
1205
+ public function createComparator (ComparatorConfig $ config = new ComparatorConfig ()): Comparator
1208
1206
{
1209
- return new Comparator ($ this ->platform , func_num_args () > 0 ? func_get_arg ( 0 ) : new ComparatorConfig () );
1207
+ return new Comparator ($ this ->platform , $ config );
1210
1208
}
1211
1209
1212
1210
/**
Original file line number Diff line number Diff line change 21
21
use function array_map ;
22
22
use function assert ;
23
23
use function explode ;
24
- use function func_get_arg ;
25
- use function func_num_args ;
26
24
use function implode ;
27
25
use function preg_match ;
28
26
use function preg_match_all ;
@@ -275,7 +273,7 @@ protected function _getPortableTableForeignKeysList(array $rows): array
275
273
}
276
274
277
275
/** @throws Exception */
278
- public function createComparator (/* ComparatorConfig $config = new ComparatorConfig() */ ): Comparator
276
+ public function createComparator (ComparatorConfig $ config = new ComparatorConfig ()): Comparator
279
277
{
280
278
return new MySQL \Comparator (
281
279
$ this ->platform ,
@@ -286,7 +284,7 @@ public function createComparator(/* ComparatorConfig $config = new ComparatorCon
286
284
new ConnectionCollationMetadataProvider ($ this ->connection ),
287
285
),
288
286
$ this ->getDefaultTableOptions (),
289
- func_num_args () > 0 ? func_get_arg ( 0 ) : new ComparatorConfig () ,
287
+ $ config ,
290
288
);
291
289
}
292
290
Original file line number Diff line number Diff line change 12
12
use Doctrine \DBAL \Schema \Name \OptionallyQualifiedName ;
13
13
14
14
use function assert ;
15
- use function func_get_arg ;
16
- use function func_num_args ;
17
15
use function implode ;
18
16
use function is_string ;
19
17
use function preg_match ;
@@ -220,12 +218,12 @@ protected function _getPortableViewDefinition(array $view): View
220
218
}
221
219
222
220
/** @throws Exception */
223
- public function createComparator (/* ComparatorConfig $config = new ComparatorConfig() */ ): Comparator
221
+ public function createComparator (ComparatorConfig $ config = new ComparatorConfig ()): Comparator
224
222
{
225
223
return new SQLServer \Comparator (
226
224
$ this ->platform ,
227
225
$ this ->getDatabaseCollation (),
228
- func_num_args () > 0 ? func_get_arg ( 0 ) : new ComparatorConfig () ,
226
+ $ config ,
229
227
);
230
228
}
231
229
Original file line number Diff line number Diff line change 19
19
use function array_merge ;
20
20
use function assert ;
21
21
use function count ;
22
- use function func_get_arg ;
23
- use function func_num_args ;
24
22
use function implode ;
25
23
use function is_string ;
26
24
use function preg_match ;
@@ -334,9 +332,9 @@ private function parseOptionallyQuotedName(string $sql): string
334
332
return $ sql ;
335
333
}
336
334
337
- public function createComparator (/* ComparatorConfig $config = new ComparatorConfig() */ ): Comparator
335
+ public function createComparator (ComparatorConfig $ config = new ComparatorConfig ()): Comparator
338
336
{
339
- return new SQLite \Comparator ($ this ->platform , func_num_args () > 0 ? func_get_arg ( 0 ) : new ComparatorConfig () );
337
+ return new SQLite \Comparator ($ this ->platform , $ config );
340
338
}
341
339
342
340
protected function selectTableNames (string $ databaseName ): Result
You can’t perform that action at this time.
0 commit comments