-
-
Notifications
You must be signed in to change notification settings - Fork 201
Expand file tree
/
Copy path.php-cs-fixer.dist.php
More file actions
28 lines (25 loc) · 762 Bytes
/
.php-cs-fixer.dist.php
File metadata and controls
28 lines (25 loc) · 762 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<?php
use PhpCsFixer\Config;
use PhpCsFixer\Finder;
$finder = Finder::create()
->in(__DIR__)
->exclude('vendor');
return (new Config())
->setRules([
'@PSR12' => true,
'@PHP8x1Migration' => true,
'no_unused_imports' => true,
'native_function_invocation' => [
'scope' => 'all',
'include' => ['@internal', '@compiler_optimized']
],
'global_namespace_import' => [
'import_classes' => true,
'import_constants' => true,
'import_functions' => true,
],
'native_constant_invocation' => true,
'nullable_type_declaration_for_default_null_value' => true,
'declare_strict_types' => true
])
->setFinder($finder);