Skip to content

Commit 21adb1b

Browse files
authored
Update the PHP CS Fixer configuration (#154)
1 parent 033b8f5 commit 21adb1b

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

.php-cs-fixer.dist.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,16 @@
1212
]);
1313

1414
return (new Config())
15+
->setRiskyAllowed(true)
1516
->setParallelConfig(ParallelConfigFactory::detect())
1617
->setRules([
1718
'@PER-CS3.0' => true,
1819
'no_unused_imports' => true,
1920
'ordered_class_elements' => true,
2021
'class_attributes_separation' => ['elements' => ['method' => 'one']],
22+
'declare_strict_types' => true,
23+
'native_function_invocation' => true,
24+
'native_constant_invocation' => true,
2125
'fully_qualified_strict_types' => [
2226
'import_symbols' => true
2327
],

0 commit comments

Comments
 (0)