Update ecs/psalm versions

pull/3768/head
Julio Montoya 4 years ago
parent 33d4e55edd
commit cb787e0dfb
  1. 8
      composer.json
  2. 2
      config/bundles.php
  3. 16
      ecs.php
  4. 7
      psalm.xml

@ -152,7 +152,7 @@
"friends-of-behat/mink-extension": "dev-master",
"php-translation/symfony-bundle": "^0.12",
"phpstan/phpstan": "^0.12",
"psalm/plugin-symfony": "^1.4",
"psalm/plugin-symfony": "^2.0",
"symfony/browser-kit": "^4.0|^5.0",
"symfony/css-selector": "^5.0",
"symfony/debug-pack": "*",
@ -160,9 +160,9 @@
"symfony/phpunit-bridge": "^5.0",
"symfony/profiler-pack": "*",
"symfony/test-pack": "*",
"symplify/easy-coding-standard": "^8.0",
"vimeo/psalm": "^3.14",
"weirdan/doctrine-psalm-plugin": "^0.11.3"
"symplify/easy-coding-standard": "^9.0",
"vimeo/psalm": "^4.0",
"weirdan/doctrine-psalm-plugin": "^1.0"
},
"replace": {
"symfony/polyfill-apcu": "*",

@ -34,8 +34,6 @@ return [
Symfony\Bundle\MakerBundle\MakerBundle::class => ['dev' => true],
SymfonyCasts\Bundle\ResetPassword\SymfonyCastsResetPasswordBundle::class => ['all' => true],
FOS\CKEditorBundle\FOSCKEditorBundle::class => ['all' => true],
Symplify\ConsoleColorDiff\ConsoleColorDiffBundle::class => ['dev' => true, 'test' => true],
Stof\DoctrineExtensionsBundle\StofDoctrineExtensionsBundle::class => ['all' => true],
Knp\DoctrineBehaviors\DoctrineBehaviorsBundle::class => ['all' => true],
Sonata\Exporter\Bridge\Symfony\SonataExporterSymfonyBundle::class => ['all' => true],
];

@ -7,13 +7,19 @@
declare(strict_types=1);
use PHP_CodeSniffer\Standards\Generic\Sniffs\Arrays\DisallowLongArraySyntaxSniff;
use PhpCsFixer\Fixer\ArrayNotation\TrailingCommaInMultilineArrayFixer;
use PhpCsFixer\Fixer\Operator\IncrementStyleFixer;
use SlevomatCodingStandard\Sniffs\Variables\UnusedVariableSniff;
//use SlevomatCodingStandard\Sniffs\Variables\UnusedVariableSniff;
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
use Symplify\EasyCodingStandard\ValueObject\Option;
use Symplify\EasyCodingStandard\ValueObject\Set\SetList;
return static function (ContainerConfigurator $containerConfigurator): void {
$services = $containerConfigurator->services();
$services->set(DisallowLongArraySyntaxSniff::class);
$services->set(TrailingCommaInMultilineArrayFixer::class);
$parameters = $containerConfigurator->parameters();
$parameters->set(
Option::SETS,
@ -31,12 +37,12 @@ return static function (ContainerConfigurator $containerConfigurator): void {
]
);
$parameters->set(
Option::EXCLUDE_PATHS,
/*$parameters->set(
Option::SKIP,
[
__DIR__.'/src/CourseBundle/Component/*',
]
);
);*/
// use $a++ instead of ++$a
$parameters->set(
@ -44,7 +50,7 @@ return static function (ContainerConfigurator $containerConfigurator): void {
[
IncrementStyleFixer::class => 'post',
//UnusedVariableSniff::class . '.ignoreUnusedValuesWhenOnlyKeysAreUsedInForeach' => true,
UnusedVariableSniff::class => 'ignoreUnusedValuesWhenOnlyKeysAreUsedInForeach',
//UnusedVariableSniff::class => 'ignoreUnusedValuesWhenOnlyKeysAreUsedInForeach',
]
);
};

@ -179,6 +179,10 @@
</projectFiles>
<issueHandlers>
<RedundantCastGivenDocblockType errorLevel="info"/>
<InvalidClass errorLevel="info"/>
<LessSpecificReturnType errorLevel="info"/>
@ -194,7 +198,6 @@
<MissingReturnType errorLevel="info"/>
<MissingPropertyType errorLevel="info"/>
<InvalidDocblock errorLevel="info"/>
<MisplacedRequiredParam errorLevel="info"/>
<PropertyNotSetInConstructor errorLevel="info"/>
<MissingConstructor errorLevel="info"/>
@ -216,7 +219,7 @@
<MoreSpecificReturnType errorLevel="info"/>
<LessSpecificReturnStatement errorLevel="info"/>
<TypeCoercion errorLevel="info"/>
<ArgumentTypeCoercion errorLevel="info"/>
<PossiblyFalseArgument errorLevel="info"/>
<PossiblyFalseIterator errorLevel="info"/>

Loading…
Cancel
Save