Matthias Pfefferle
9945aa7cf8
* Add leading \ before function invocation to speed up resolving. * Add leading \ before constant invocation of internal constant to speed up resolving. Constant name match is case-sensitive, except for null, false and true.
15 lines
306 B
PHP
15 lines
306 B
PHP
<?php
|
|
$finder = PhpCsFixer\Finder::create()
|
|
->exclude('vendor')
|
|
->exclude('node_modules')
|
|
->exclude('bin')
|
|
->in(__DIR__)
|
|
;
|
|
|
|
return PhpCsFixer\Config::create()
|
|
->setRules([
|
|
'native_function_invocation' => true,
|
|
'native_constant_invocation' => true,
|
|
])
|
|
->setFinder($finder)
|
|
;
|