chore(deps): update dependency symplify/easy-coding-standard to v11 - autoclosed
Created by: renovate[bot]
This PR contains the following updates:
Package | Type | Update | Change |
---|---|---|---|
symplify/easy-coding-standard | require-dev | major |
^10.0 -> ^11.0
|
Release Notes
symplify/easy-coding-standard
v11.1.5
v11.1.4
v11.1.3
v11.1.2
v11.1.1
v11.1.0
v11.0.9
v11.0.8
v11.0.7
v11.0.6
v11.0.5
v11.0.4
v11.0.3
v11.0.2
v11.0.1
v10.3.3
v10.3.2
v10.3.1
v10.3.0
v10.2.11
v10.2.10
v10.2.9
v10.2.8
v10.2.7
v10.2.6
v10.2.5
v10.2.4
ecs.php
Make use of native ECSConfig in Running ECS on Symfony project can create conflict with native ContainerConfigurator
. To avoid that, we introduce a new config, that is fully scoped and isolated within ECS.
Another big advantage is new configuration methods with validation and autocomplete right in your ide
Read more in https://tomasvotruba.com/blog/new-in-ecs-simpler-config/
💀
Before use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
use Symplify\EasyCodingStandard\ValueObject\Option;
// ups, possible conflict with ContainerConfigurator
return static function (ContainerConfigurator $containerConfigurator): void {
$parameters = $containerConfigurator->parameters();
// too verbose params, constants and possible typo in param value
$parameters->set(Option::PATHS, [[ // ups, "[[" typo
__DIR__ . '/src/',
]]);
$services = $containerConfigurator->services();
$services->set(ArraySyntaxFixer::class);
};
🎉
Now use Symplify\EasyCodingStandard\Config\ECSConfig;
use Symplify\EasyCodingStandard\ValueObject\Set\SetList;
return static function (ECSConfig $ecsConfig): void {
$ecsConfig->paths([
__DIR__ . '/src',
]);
$ecsConfig->rule(ArraySyntaxFixer::class);
$ecsConfig->sets([SetList::PSR_12]);
};
v10.2.3
v10.2.2
v10.2.1
v10.2.0
Configuration
-
If you want to rebase/retry this PR, click this checkbox.
This PR has been generated by Mend Renovate. View repository job log here.