Skip to content

Commit cc1c980

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

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-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: 4 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,9 @@
2119
'@PHPUnit75Migration:risky' => true,
2220
'@PHPUnit84Migration:risky' => true,
2321

22+
// needed for PHP 7.x
23+
'trailing_comma_in_multiline' => ['after_heredoc' => true, 'elements' => ['arrays', 'match']],
24+
2425
'php_unit_construct' => true,
2526
'php_unit_dedicate_assert' => ['target' => 'newest'],
2627
'php_unit_expectation' => ['target' => 'newest'],

0 commit comments

Comments
 (0)