Skip to content

Commit 715b62c

Browse files
authored
Switch to non-deprecated Extension class (#545)
1 parent fa16f0d commit 715b62c

File tree

3 files changed

+3
-15
lines changed

3 files changed

+3
-15
lines changed

DependencyInjection/DoctrineMigrationsExtension.php

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@
1616
use Symfony\Component\DependencyInjection\ContainerAwareInterface;
1717
use Symfony\Component\DependencyInjection\ContainerBuilder;
1818
use Symfony\Component\DependencyInjection\Definition;
19+
use Symfony\Component\DependencyInjection\Extension\Extension;
1920
use Symfony\Component\DependencyInjection\Loader\XmlFileLoader;
2021
use Symfony\Component\DependencyInjection\Reference;
21-
use Symfony\Component\HttpKernel\DependencyInjection\Extension;
2222

2323
use function array_keys;
2424
use function assert;
@@ -30,16 +30,12 @@
3030
use function strlen;
3131
use function substr;
3232

33-
/**
34-
* DoctrineMigrationsExtension.
35-
*/
3633
class DoctrineMigrationsExtension extends Extension
3734
{
3835
/**
3936
* Responds to the migrations configuration parameter.
4037
*
41-
* @param mixed[][] $configs
42-
* @psalm-param array<string, array<string, array<string, array<string, string>|string>|string>> $configs
38+
* {@inheritDoc}
4339
*/
4440
public function load(array $configs, ContainerBuilder $container): void
4541
{

phpstan.neon.dist

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,6 @@ parameters:
1212
# That file contains an error that cannot be ignored
1313
- Tests/Fixtures/Migrations/ContainerAwareMigration.php
1414

15-
ignoreErrors:
16-
- '~Parameter \#1 \$configs.*DoctrineMigrationsExtension::load.*~'
17-
1815
includes:
1916
- phpstan-baseline.neon
2017
- vendor/phpstan/phpstan-strict-rules/rules.neon

psalm-baseline.xml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,10 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<files psalm-version="5.23.1@8471a896ccea3526b26d082f4461eeea467f10a4">
2+
<files psalm-version="5.24.0@462c80e31c34e58cc4f750c656be3927e80e550e">
33
<file src="DependencyInjection/Configuration.php">
44
<UndefinedInterfaceMethod>
55
<code><![CDATA[end]]></code>
66
</UndefinedInterfaceMethod>
77
</file>
8-
<file src="DependencyInjection/DoctrineMigrationsExtension.php">
9-
<MoreSpecificImplementedParamType>
10-
<code><![CDATA[$configs]]></code>
11-
</MoreSpecificImplementedParamType>
12-
</file>
138
<file src="MigrationsFactory/ContainerAwareMigrationFactory.php">
149
<ContainerDependency>
1510
<code><![CDATA[ContainerInterface $container]]></code>

0 commit comments

Comments
 (0)