Skip to content

Commit fc3fb53

Browse files
committed
adjust rule for trailing comma in multiline to support PHP 7.4
1 parent ae384f0 commit fc3fb53

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

66 files changed

+112
-111
lines changed

.php-cs-fixer.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
'linebreak_after_opening_tag' => true,
1616
'ordered_imports' => true,
1717
'phpdoc_order' => true,
18+
'trailing_comma_in_multiline' => ['after_heredoc' => true, 'elements' => ['arrays']], // Remove this rule after dropping support for PHP 7.4
1819
])
1920
->setFinder($finder)
2021
->setRiskyAllowed(true)

tests/Unit/Api/AbstractApi/DeleteTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ public function testDeleteWithHttpClient()
2626
'',
2727
200,
2828
'application/xml',
29-
'<?xml version="1.0"?><issue/>'
29+
'<?xml version="1.0"?><issue/>',
3030
]
3131
);
3232

tests/Unit/Api/AbstractApi/GetTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public function testGetWithHttpClient()
2727
'',
2828
200,
2929
'application/json',
30-
'{"foo_bar": 12345}'
30+
'{"foo_bar": 12345}',
3131
]
3232
);
3333

tests/Unit/Api/AbstractApi/PostTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public function testPostWithHttpClient()
2727
'',
2828
200,
2929
'application/xml',
30-
'<?xml version="1.0"?><issue/>'
30+
'<?xml version="1.0"?><issue/>',
3131
]
3232
);
3333

tests/Unit/Api/AbstractApi/PutTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public function testPutWithHttpClient()
2727
'',
2828
200,
2929
'application/xml',
30-
'<?xml version="1.0"?><issue/>'
30+
'<?xml version="1.0"?><issue/>',
3131
]
3232
);
3333

tests/Unit/Api/AbstractApiTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -219,14 +219,14 @@ public function testLastCallFailedPreventsRaceCondition()
219219
'200.json',
220220
'application/json',
221221
'',
222-
200
222+
200,
223223
],
224224
[
225225
'GET',
226226
'500.json',
227227
'application/json',
228228
'',
229-
500
229+
500,
230230
]
231231
);
232232

tests/Unit/Api/Attachment/DownloadTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ public function testDownloadReturnsCorrectResponse($id, $expectedPath, $response
2626
'',
2727
$responseCode,
2828
'application/json',
29-
$response
29+
$response,
3030
]
3131
);
3232

tests/Unit/Api/Attachment/RemoveTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ public function testRemoveReturnsString()
2323
'',
2424
204,
2525
'',
26-
''
26+
'',
2727
]
2828
);
2929

tests/Unit/Api/Attachment/ShowTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ public function testShowReturnsCorrectResponse($id, $expectedPath, $response, $e
2626
'',
2727
200,
2828
'application/json',
29-
$response
29+
$response,
3030
]
3131
);
3232

tests/Unit/Api/Attachment/UpdateTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public function testUpdateReturnsCorrectResponse($id, array $params, $expectedPa
2727
$expectedContent,
2828
204,
2929
'',
30-
''
30+
'',
3131
]
3232
);
3333

0 commit comments

Comments
 (0)