Skip to content

Commit

Permalink
Fix direct deprecations in tests for Symfony 6.4
Browse files Browse the repository at this point in the history
  • Loading branch information
ostrolucky committed Jul 23, 2023
1 parent e2909e9 commit 0e6b32b
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 8 deletions.
4 changes: 1 addition & 3 deletions ConnectionFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,7 @@
/** @psalm-import-type Params from DriverManager */
class ConnectionFactory
{
/**
* @internal
*/
/** @internal */
public const DEFAULT_SCHEME_MAP = [
'db2' => 'ibm_db2',
'mssql' => 'pdo_sqlsrv',
Expand Down
4 changes: 1 addition & 3 deletions EventSubscriber/EventSubscriberInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,7 @@

use Doctrine\Common\EventSubscriber;

/**
* @deprecated use the {@see AsDoctrineListener} attribute instead
*/
/** @deprecated use the {@see AsDoctrineListener} attribute instead */
interface EventSubscriberInterface extends EventSubscriber
{
}
3 changes: 2 additions & 1 deletion Tests/DependencyInjection/Compiler/IdGeneratorPassTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
use Symfony\Bundle\FrameworkBundle\DependencyInjection\FrameworkExtension;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\DependencyInjection\ParameterBag\ParameterBag;
use Symfony\Component\HttpKernel\Kernel;

use function assert;
use function class_exists;
Expand Down Expand Up @@ -92,7 +93,7 @@ public function testRepositoryServiceWiring(): void
'framework' => [
'http_method_override' => false,
'annotations' => [
'enabled' => class_exists(AnnotationReader::class),
'enabled' => class_exists(AnnotationReader::class) && Kernel::VERSION_ID < 64000,
],
],
], $container);
Expand Down
3 changes: 2 additions & 1 deletion Tests/ServiceRepositoryTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
use Symfony\Component\DependencyInjection\Alias;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\DependencyInjection\ParameterBag\ParameterBag;
use Symfony\Component\HttpKernel\Kernel;

use function class_exists;
use function interface_exists;
Expand Down Expand Up @@ -72,7 +73,7 @@ public function testRepositoryServiceWiring(): void
'framework' => [
'http_method_override' => false,
'annotations' => [
'enabled' => class_exists(AnnotationReader::class),
'enabled' => class_exists(AnnotationReader::class) && Kernel::VERSION_ID < 64000,
],
],
], $container);
Expand Down

0 comments on commit 0e6b32b

Please sign in to comment.