Skip to content

Commit

Permalink
Update psalm to 5.23
Browse files Browse the repository at this point in the history
  • Loading branch information
ajgarlag authored and kpicaza committed Apr 11, 2024
1 parent 7afce43 commit 7c8b090
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
"squizlabs/php_codesniffer": "^3.4",
"symfony/var-dumper": "^4.2 || ^5.0 || ^6.0 || ^7.0",
"twig/twig": "^2.4.4 || ^3.0",
"vimeo/psalm": "^4.4"
"vimeo/psalm": "^4.4 || ^5.23"
},
"autoload": {
"psr-4": {
Expand Down
8 changes: 4 additions & 4 deletions src/DependencyInjection/Configuration.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
final class Configuration implements ConfigurationInterface
{
/**
* @psalm-suppress ReservedWord
* @psalm-suppress UndefinedInterfaceMethod
* @return TreeBuilder
*/
public function getConfigTreeBuilder(): TreeBuilder
Expand Down Expand Up @@ -42,7 +42,7 @@ public function getConfigTreeBuilder(): TreeBuilder
return $treeBuilder;
}

/** @psalm-suppress ReservedWord */
/** @psalm-suppress UndefinedInterfaceMethod */
private function addStrategyTypes(ArrayNodeDefinition $rootNode): void
{
/** @phpstan-ignore-next-line */
Expand All @@ -64,7 +64,7 @@ private function addStrategyTypes(ArrayNodeDefinition $rootNode): void
->end();
}

/** @psalm-suppress ReservedWord */
/** @psalm-suppress UndefinedInterfaceMethod */
private function addSegmentTypes(ArrayNodeDefinition $rootNode): void
{
/** @phpstan-ignore-next-line */
Expand All @@ -86,7 +86,7 @@ private function addSegmentTypes(ArrayNodeDefinition $rootNode): void
->end();
}

/** @psalm-suppress ReservedWord */
/** @psalm-suppress UndefinedInterfaceMethod */
private function addToggles(ArrayNodeDefinition $rootNode): void
{
/** @phpstan-ignore-next-line */
Expand Down
2 changes: 1 addition & 1 deletion src/DependencyInjection/FeatureFinderFactoryPass.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public function process(ContainerBuilder $container): void
{
/** @var array<array<mixed>> $pheatureFlagsConfig */
$pheatureFlagsConfig = $container->getExtensionConfig('pheature_flags');
$mergedConfig = array_merge(...$pheatureFlagsConfig);
$mergedConfig = array_replace(...$pheatureFlagsConfig);

$finder = $container->register(FeatureFinder::class, FeatureFinder::class)
->setAutowired(false)
Expand Down
2 changes: 1 addition & 1 deletion src/DependencyInjection/FeatureRepositoryFactoryPass.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public function process(ContainerBuilder $container): void
{
/** @var array<array<mixed>> $pheatureFlagsConfig */
$pheatureFlagsConfig = $container->getExtensionConfig('pheature_flags');
$mergedConfig = array_merge(...$pheatureFlagsConfig);
$mergedConfig = array_replace(...$pheatureFlagsConfig);

$repository = $container->register(FeatureRepository::class, FeatureRepository::class)
->setAutowired(false)
Expand Down
2 changes: 1 addition & 1 deletion src/DependencyInjection/SegmentFactoryPass.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public function process(ContainerBuilder $container): void
{
/** @var array<array<mixed>> $pheatureFlagsConfig */
$pheatureFlagsConfig = $container->getExtensionConfig('pheature_flags');
$mergedConfig = array_merge(...$pheatureFlagsConfig);
$mergedConfig = array_replace(...$pheatureFlagsConfig);

$segmentFactory = $container->register(SegmentFactory::class, SegmentFactory::class)
->setAutowired(false)
Expand Down
2 changes: 1 addition & 1 deletion src/DependencyInjection/ToggleAPIPass.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public function process(ContainerBuilder $container): void
/** @var array<array<mixed>> $pheatureFlagsConfig */
$pheatureFlagsConfig = $container->getExtensionConfig('pheature_flags');

$mergedConfig = array_merge(...$pheatureFlagsConfig);
$mergedConfig = array_replace(...$pheatureFlagsConfig);
Assert::keyExists($mergedConfig, 'api_enabled');
Assert::boolean($mergedConfig['api_enabled']);

Expand Down
2 changes: 1 addition & 1 deletion src/DependencyInjection/ToggleStrategyFactoryPass.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public function process(ContainerBuilder $container): void
{
/** @var array<array<mixed>> $pheatureFlagsConfig */
$pheatureFlagsConfig = $container->getExtensionConfig('pheature_flags');
$mergedConfig = array_merge(...$pheatureFlagsConfig);
$mergedConfig = array_replace(...$pheatureFlagsConfig);

$toggleStrategyFactory = $container->register(
ChainToggleStrategyFactory::class,
Expand Down

0 comments on commit 7c8b090

Please sign in to comment.