From 715b62c31a5894afcb2b2cdbbc6607d7dd0580c0 Mon Sep 17 00:00:00 2001 From: "Alexander M. Turek" Date: Tue, 14 May 2024 22:32:18 +0200 Subject: [PATCH] Switch to non-deprecated Extension class (#545) --- DependencyInjection/DoctrineMigrationsExtension.php | 8 ++------ phpstan.neon.dist | 3 --- psalm-baseline.xml | 7 +------ 3 files changed, 3 insertions(+), 15 deletions(-) diff --git a/DependencyInjection/DoctrineMigrationsExtension.php b/DependencyInjection/DoctrineMigrationsExtension.php index e855d10..647d1a2 100644 --- a/DependencyInjection/DoctrineMigrationsExtension.php +++ b/DependencyInjection/DoctrineMigrationsExtension.php @@ -16,9 +16,9 @@ use Symfony\Component\DependencyInjection\ContainerAwareInterface; use Symfony\Component\DependencyInjection\ContainerBuilder; use Symfony\Component\DependencyInjection\Definition; +use Symfony\Component\DependencyInjection\Extension\Extension; use Symfony\Component\DependencyInjection\Loader\XmlFileLoader; use Symfony\Component\DependencyInjection\Reference; -use Symfony\Component\HttpKernel\DependencyInjection\Extension; use function array_keys; use function assert; @@ -30,16 +30,12 @@ use function strlen; use function substr; -/** - * DoctrineMigrationsExtension. - */ class DoctrineMigrationsExtension extends Extension { /** * Responds to the migrations configuration parameter. * - * @param mixed[][] $configs - * @psalm-param array|string>|string>> $configs + * {@inheritDoc} */ public function load(array $configs, ContainerBuilder $container): void { diff --git a/phpstan.neon.dist b/phpstan.neon.dist index dd8df60..942af6c 100644 --- a/phpstan.neon.dist +++ b/phpstan.neon.dist @@ -12,9 +12,6 @@ parameters: # That file contains an error that cannot be ignored - Tests/Fixtures/Migrations/ContainerAwareMigration.php - ignoreErrors: - - '~Parameter \#1 \$configs.*DoctrineMigrationsExtension::load.*~' - includes: - phpstan-baseline.neon - vendor/phpstan/phpstan-strict-rules/rules.neon diff --git a/psalm-baseline.xml b/psalm-baseline.xml index 3da87db..fa484db 100644 --- a/psalm-baseline.xml +++ b/psalm-baseline.xml @@ -1,15 +1,10 @@ - + - - - - -