Skip to content

Commit

Permalink
Sync tool config
Browse files Browse the repository at this point in the history
  • Loading branch information
core23 committed Feb 9, 2025
1 parent b3bb90e commit eea7080
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 7 deletions.
15 changes: 8 additions & 7 deletions .php-cs-fixer.dist.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

use PhpCsFixer\Runner\Parallel\ParallelConfigFactory;

$header = <<<EOF
(c) Christian Gripp <[email protected]>
Expand All @@ -11,7 +13,8 @@
->in([ __DIR__.'/src', __DIR__.'/tests'])
;

$config = (new PhpCsFixer\Config())
return (new PhpCsFixer\Config())
->setParallelConfig(ParallelConfigFactory::detect())
->setRiskyAllowed(true)
->setRules([
'@Symfony' => true,
Expand Down Expand Up @@ -41,12 +44,10 @@
],
'static_lambda' => true,
'global_namespace_import' => [
'import_classes' => true,
'import_constants' => false,
'import_functions' => false,
'import_classes' => true,
'import_constants' => false,
'import_functions' => false,
],
])
->setFinder($finder)
;
->setFinder($finder);

return $config;
4 changes: 4 additions & 0 deletions phpstan.neon.dist
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,13 @@ includes:
parameters:
level: 8

parallel:
maximumNumberOfProcesses: 4

paths:
- src
- tests

bootstrapFiles:
- vendor-bin/tools/vendor/autoload.php

0 comments on commit eea7080

Please sign in to comment.