Skip to content

Commit e847cd9

Browse files
committed
[TASK] Update PHP-CS-Fixer
1 parent 11a91c4 commit e847cd9

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

.phive/phars.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<phive xmlns="https://phar.io/phive">
3-
<phar name="php-cs-fixer" version="^3.50.0" installed="3.50.0" location="./.phive/php-cs-fixer" copy="false"/>
3+
<phar name="php-cs-fixer" version="^3.59.3" installed="3.59.3" location="./.phive/php-cs-fixer" copy="false"/>
44
</phive>

config/php-cs-fixer.php

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
<?php
22

3-
if (PHP_SAPI !== 'cli') {
4-
die('This script supports command line usage only. Please check your command.');
5-
}
3+
declare(strict_types=1);
64

75
return (new \PhpCsFixer\Config())
86
->setRiskyAllowed(true)
@@ -21,6 +19,12 @@
2119
'@PHPUnit75Migration:risky' => true,
2220
'@PHPUnit84Migration:risky' => true,
2321

22+
// needed for PHP 7.x
23+
'trailing_comma_in_multiline' => [
24+
'after_heredoc' => true,
25+
'elements' => ['arrays', 'match', 'parameters'],
26+
],
27+
2428
'php_unit_construct' => true,
2529
'php_unit_dedicate_assert' => ['target' => 'newest'],
2630
'php_unit_expectation' => ['target' => 'newest'],

0 commit comments

Comments
 (0)