Skip to content

Commit

Permalink
Deprecated option to import (#6)
Browse files Browse the repository at this point in the history
Co-authored-by: nastyanwdles <[email protected]>
  • Loading branch information
nwdles and nastyanwdles authored Dec 28, 2021
1 parent 856ad29 commit e6bc3bf
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions umbrellio-cs.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,19 +7,16 @@
use PhpCsFixer\Fixer\Operator\NotOperatorWithSuccessorSpaceFixer;
use PhpCsFixer\Fixer\Strict\DeclareStrictTypesFixer;
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
use Symplify\EasyCodingStandard\ValueObject\Option;
use Symplify\EasyCodingStandard\ValueObject\Set\SetList;

return static function(ContainerConfigurator $containerConfigurator): void {
$parameters = $containerConfigurator->parameters();
$services = $containerConfigurator->services();

$parameters->set(Option::SETS, [
SetList::CLEAN_CODE,
SetList::PSR_12,
SetList::COMMON,
SetList::SYMPLIFY,
]);
$containerConfigurator->import(SetList::CLEAN_CODE);
$containerConfigurator->import(SetList::PSR_12);
$containerConfigurator->import(SetList::COMMON);
$containerConfigurator->import(SetList::SYMPLIFY);

$services->set(DeclareStrictTypesFixer::class);
$services->set('SlevomatCodingStandard\Sniffs\Namespaces\ReferenceUsedNamesOnlySniff')
Expand Down

0 comments on commit e6bc3bf

Please sign in to comment.