From 3bb3b08b0a9895de48e672b7a3f4cdb9532b193a Mon Sep 17 00:00:00 2001 From: Daniel Badura Date: Thu, 4 Jun 2026 19:46:44 +0200 Subject: [PATCH] Fix some test namespace issues --- phpstan-baseline.neon | 2 +- tests/Fixtures/DummyExtension.php | 2 +- tests/Fixtures/DummyGuesser.php | 2 +- tests/Unit/PatchlevelEventSourcingBundleTest.php | 4 ++-- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/phpstan-baseline.neon b/phpstan-baseline.neon index e9cf1917..9eb870ca 100644 --- a/phpstan-baseline.neon +++ b/phpstan-baseline.neon @@ -37,7 +37,7 @@ parameters: path: src/Normalizer/UidNormalizer.php - - message: '#^Method Fixtures\\DummyGuesser\:\:guess\(\) has parameter \$type with generic class Symfony\\Component\\TypeInfo\\Type\\ObjectType but does not specify its types\: T$#' + message: '#^Method Patchlevel\\EventSourcingBundle\\Tests\\Fixtures\\DummyGuesser\:\:guess\(\) has parameter \$type with generic class Symfony\\Component\\TypeInfo\\Type\\ObjectType but does not specify its types\: T$#' identifier: missingType.generics count: 1 path: tests/Fixtures/DummyGuesser.php diff --git a/tests/Fixtures/DummyExtension.php b/tests/Fixtures/DummyExtension.php index 89bd3420..d935d252 100644 --- a/tests/Fixtures/DummyExtension.php +++ b/tests/Fixtures/DummyExtension.php @@ -2,7 +2,7 @@ declare(strict_types=1); -namespace Fixtures; +namespace Patchlevel\EventSourcingBundle\Tests\Fixtures; use Patchlevel\Hydrator\Extension; use Patchlevel\Hydrator\StackHydratorBuilder; diff --git a/tests/Fixtures/DummyGuesser.php b/tests/Fixtures/DummyGuesser.php index 9760c810..26db1ffe 100644 --- a/tests/Fixtures/DummyGuesser.php +++ b/tests/Fixtures/DummyGuesser.php @@ -2,7 +2,7 @@ declare(strict_types=1); -namespace Fixtures; +namespace Patchlevel\EventSourcingBundle\Tests\Fixtures; use Patchlevel\Hydrator\Guesser\Guesser; use Patchlevel\Hydrator\Normalizer\Normalizer; diff --git a/tests/Unit/PatchlevelEventSourcingBundleTest.php b/tests/Unit/PatchlevelEventSourcingBundleTest.php index 2dcd00ec..1046a80d 100644 --- a/tests/Unit/PatchlevelEventSourcingBundleTest.php +++ b/tests/Unit/PatchlevelEventSourcingBundleTest.php @@ -13,8 +13,6 @@ use Doctrine\Migrations\Tools\Console\Command\MigrateCommand; use Doctrine\Migrations\Tools\Console\Command\StatusCommand; use Doctrine\Persistence\ManagerRegistry; -use Fixtures\DummyExtension; -use Fixtures\DummyGuesser; use InvalidArgumentException; use Patchlevel\EventSourcing\Attribute\Aggregate; use Patchlevel\EventSourcing\Attribute\Event; @@ -102,6 +100,8 @@ use Patchlevel\EventSourcingBundle\Tests\Fixtures\CreateProfile; use Patchlevel\EventSourcingBundle\Tests\Fixtures\CustomHeader; use Patchlevel\EventSourcingBundle\Tests\Fixtures\DummyArgumentResolver; +use Patchlevel\EventSourcingBundle\Tests\Fixtures\DummyExtension; +use Patchlevel\EventSourcingBundle\Tests\Fixtures\DummyGuesser; use Patchlevel\EventSourcingBundle\Tests\Fixtures\Listener1; use Patchlevel\EventSourcingBundle\Tests\Fixtures\Listener2; use Patchlevel\EventSourcingBundle\Tests\Fixtures\Profile;