From c46875dee1b159c85de63da59959822e5a1c4493 Mon Sep 17 00:00:00 2001 From: Howriq Date: Fri, 21 Nov 2025 00:32:42 +0200 Subject: [PATCH 1/3] removed type docs Signed-off-by: Howriq --- src/App/src/ConfigProvider.php | 54 ---------------------------------- 1 file changed, 54 deletions(-) diff --git a/src/App/src/ConfigProvider.php b/src/App/src/ConfigProvider.php index 4134b70..a26cd4d 100644 --- a/src/App/src/ConfigProvider.php +++ b/src/App/src/ConfigProvider.php @@ -7,7 +7,6 @@ use Doctrine\ORM\EntityManager; use Doctrine\ORM\EntityManagerInterface; use Doctrine\ORM\Mapping\EntityListenerResolver as EntityListenerResolverInterface; -use Doctrine\Persistence\Mapping\Driver\MappingDriver; use Doctrine\Persistence\Mapping\Driver\MappingDriverChain; use Dot\Cache\Adapter\ArrayAdapter; use Dot\Cache\Adapter\FilesystemAdapter; @@ -16,62 +15,9 @@ use Mezzio\Application; use Ramsey\Uuid\Doctrine\UuidType; use Roave\PsrContainerDoctrine\EntityManagerFactory; -use Symfony\Component\Cache\Adapter\AdapterInterface; use function getcwd; -/** - * @phpstan-type ConfigType array{ - * dependencies: DependenciesType, - * doctrine: DoctrineConfigType, - * resultCacheLifetime: int, - * } - * @phpstan-type DoctrineConfigType array{ - * cache: array{ - * array: array{ - * class: class-string, - * }, - * filesystem: array{ - * class: class-string, - * directory: non-empty-string, - * namespace: non-empty-string, - * }, - * }, - * configuration: array{ - * orm_default: array{ - * entity_listener_resolver: class-string, - * result_cache: non-empty-string, - * metadata_cache: non-empty-string, - * query_cache: non-empty-string, - * hydration_cache: non-empty-string, - * typed_field_mapper: non-empty-string|null, - * second_level_cache: array{ - * enabled: bool, - * default_lifetime: int, - * default_lock_lifetime: int, - * file_lock_region_directory: string, - * regions: string[], - * }, - * }, - * }, - * driver: array{ - * orm_default: array{ - * class: class-string, - * }, - * }, - * migrations: array{ - * migrations_paths: array, - * all_or_nothing: bool, - * check_database_platform: bool, - * }, - * types: array, - * } - * @phpstan-type DependenciesType array{ - * factories: array, - * aliases: array, - * } - */ - class ConfigProvider { /** From ea1a4c95c97003c49b14a9feb23a6ba48d3fc0a4 Mon Sep 17 00:00:00 2001 From: Howriq Date: Fri, 21 Nov 2025 00:33:44 +0200 Subject: [PATCH 2/3] removed type docs Signed-off-by: Howriq --- src/App/src/ConfigProvider.php | 1 - 1 file changed, 1 deletion(-) diff --git a/src/App/src/ConfigProvider.php b/src/App/src/ConfigProvider.php index a26cd4d..0bf39ac 100644 --- a/src/App/src/ConfigProvider.php +++ b/src/App/src/ConfigProvider.php @@ -23,7 +23,6 @@ class ConfigProvider /** @return array{ * dependencies: array, - * doctrine: array, * templates: array, * } */ From c994b3f2eb846e86c4b8a7635cd455753fc21c37 Mon Sep 17 00:00:00 2001 From: Howriq Date: Fri, 21 Nov 2025 00:52:08 +0200 Subject: [PATCH 3/3] removed type docs Signed-off-by: Howriq --- src/App/src/ConfigProvider.php | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/App/src/ConfigProvider.php b/src/App/src/ConfigProvider.php index 0bf39ac..c1dec1a 100644 --- a/src/App/src/ConfigProvider.php +++ b/src/App/src/ConfigProvider.php @@ -6,7 +6,6 @@ use Doctrine\ORM\EntityManager; use Doctrine\ORM\EntityManagerInterface; -use Doctrine\ORM\Mapping\EntityListenerResolver as EntityListenerResolverInterface; use Doctrine\Persistence\Mapping\Driver\MappingDriverChain; use Dot\Cache\Adapter\ArrayAdapter; use Dot\Cache\Adapter\FilesystemAdapter; @@ -97,7 +96,6 @@ private function getDoctrineConfig(): array ], 'configuration' => [ 'orm_default' => [ - 'entity_listener_resolver' => EntityListenerResolverInterface::class, 'result_cache' => 'filesystem', 'metadata_cache' => 'filesystem', 'query_cache' => 'filesystem',