Skip to content

Commit f18e57e

Browse files
committed
PHP 8.1 syntax with PHP-Cs-Fixer
1 parent fd2f580 commit f18e57e

1 file changed

Lines changed: 1 addition & 6 deletions

File tree

.php-cs-fixer.dist.php

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,7 @@
33
declare(strict_types=1);
44

55
$finder = PhpCsFixer\Finder::create()
6-
->exclude('htdocs')
7-
->exclude('data')
8-
->exclude('node_modules')
96
->exclude('vendor')
10-
->name('*.phtml')
11-
->name('*.php.dist')
127
->in(__DIR__);
138

149
return (new PhpCsFixer\Config())
@@ -94,7 +89,7 @@
9489
'mb_str_functions' => true,
9590
'method_argument_space' => true,
9691
'method_chaining_indentation' => true,
97-
'modernize_strpos' => false, // Require PHP 8.0
92+
'modernize_strpos' => true,
9893
'modernize_types_casting' => true,
9994
'multiline_comment_opening_closing' => true,
10095
'multiline_whitespace_before_semicolons' => true,

0 commit comments

Comments
 (0)