Skip to content

Commit d225596

Browse files
committed
fix conflicts
1 parent 216e3cd commit d225596

File tree

2 files changed

+23
-47
lines changed

2 files changed

+23
-47
lines changed

tests/Fixer/FunctionNotation/MethodArgumentSpaceFixerTest.php

Lines changed: 20 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -930,6 +930,26 @@ public function provideFix73Cases()
930930
null,
931931
['on_multiline' => 'ensure_fully_multiline'],
932932
],
933+
[
934+
'<?php
935+
functionCall(
936+
1,
937+
2,
938+
3,
939+
);',
940+
'<?php
941+
functionCall(
942+
1, 2,
943+
3,
944+
);',
945+
[
946+
'on_multiline' => 'ensure_fully_multiline',
947+
],
948+
],
949+
[
950+
'<?php foo(1, 2, 3, );',
951+
'<?php foo(1,2,3,);',
952+
],
933953
];
934954
}
935955

@@ -971,47 +991,4 @@ functionCall(
971991

972992
$this->doTest($expected, $input);
973993
}
974-
975-
/**
976-
* @param string $expected
977-
* @param null|string $input
978-
* @param null|array $config
979-
*
980-
* @requires PHP 7.3
981-
* @dataProvider provideFix73Cases
982-
*/
983-
public function testFix73($expected, $input = null, array $config = null)
984-
{
985-
if (null !== $config) {
986-
$this->fixer->configure($config);
987-
}
988-
989-
$this->doTest($expected, $input);
990-
}
991-
992-
public function provideFix73Cases()
993-
{
994-
return [
995-
[
996-
'<?php
997-
functionCall(
998-
1,
999-
2,
1000-
3,
1001-
);',
1002-
'<?php
1003-
functionCall(
1004-
1, 2,
1005-
3,
1006-
);',
1007-
[
1008-
'on_multiline' => 'ensure_fully_multiline',
1009-
],
1010-
],
1011-
[
1012-
'<?php foo(1, 2, 3, );',
1013-
'<?php foo(1,2,3,);',
1014-
],
1015-
];
1016-
}
1017994
}

tests/Fixer/FunctionNotation/PhpdocToReturnTypeFixerTest.php

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ final class PhpdocToReturnTypeFixerTest extends AbstractFixerTestCase
3131
*
3232
* @dataProvider provideFixCases
3333
*/
34-
public function testFix($expected, $input = null, $versionSpecificFix = null, $config = null)
34+
public function testFix($expected, $input = null, $versionSpecificFix = null, $config = [])
3535
{
3636
if (
3737
(null !== $input && \PHP_VERSION_ID < 70000)
@@ -40,9 +40,8 @@ public function testFix($expected, $input = null, $versionSpecificFix = null, $c
4040
$expected = $input;
4141
$input = null;
4242
}
43-
if (null !== $config) {
44-
$this->fixer->configure($config);
45-
}
43+
44+
$this->fixer->configure($config);
4645

4746
$this->doTest($expected, $input);
4847
}

0 commit comments

Comments
 (0)