From 5e2bd03c859f3621a84648d4e775dc04970d330c Mon Sep 17 00:00:00 2001 From: Chemaclass Date: Thu, 12 Dec 2024 20:01:35 +0100 Subject: [PATCH 1/3] release: 1.9.1 --- CHANGELOG.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8182f387..58966d17 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Changelog +## [1.9.1](https://github.com/gacela-project/gacela/compare/1.9.0...1.9.1) - 2024-12-12 + +- Better compatibility with PHP 8.4 + ## [1.9.0](https://github.com/gacela-project/gacela/compare/1.8.1...1.9.0) - 2024-12-01 - Compatibility with PHP 8.4 From 5351b446fa746d3bc288d4bcb23ce9d91746fc12 Mon Sep 17 00:00:00 2001 From: Chemaclass Date: Thu, 12 Dec 2024 20:05:13 +0100 Subject: [PATCH 2/3] test: fix DocBlockResolverCustomServicesAwareTest --- .../DocBlockResolverCustomServicesAwareTest.php | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/Integration/Framework/DocBlockResolverAware/DocBlockResolverCustomServicesAwareTest.php b/tests/Integration/Framework/DocBlockResolverAware/DocBlockResolverCustomServicesAwareTest.php index e47e781b..33375edc 100644 --- a/tests/Integration/Framework/DocBlockResolverAware/DocBlockResolverCustomServicesAwareTest.php +++ b/tests/Integration/Framework/DocBlockResolverAware/DocBlockResolverCustomServicesAwareTest.php @@ -26,6 +26,7 @@ protected function setUp(): void { Gacela::bootstrap(__DIR__, static function (GacelaConfig $config): void { $config->resetInMemoryCache(); + $config->enableFileCache(__DIR__); $config->addAppConfigKeyValue(GacelaFileCache::KEY_ENABLED, true); $config->registerGenericListener(static function (GacelaEventInterface $event): void { // dump('Triggered -> ' . \get_class($event)); # useful for debugging From 62cb6d9a41ae1898a4dedf1cb88400df2fd7dc58 Mon Sep 17 00:00:00 2001 From: Chemaclass Date: Thu, 12 Dec 2024 20:10:40 +0100 Subject: [PATCH 3/3] fix: tests running on php 8.4 --- .../ListeningEvents/ClassResolver/DisableListenersTest.php | 2 -- tests/Feature/Framework/StaticFacade/FeatureTest.php | 7 ------- 2 files changed, 9 deletions(-) diff --git a/tests/Feature/Framework/ListeningEvents/ClassResolver/DisableListenersTest.php b/tests/Feature/Framework/ListeningEvents/ClassResolver/DisableListenersTest.php index d23fb4a1..9bfc1da1 100644 --- a/tests/Feature/Framework/ListeningEvents/ClassResolver/DisableListenersTest.php +++ b/tests/Feature/Framework/ListeningEvents/ClassResolver/DisableListenersTest.php @@ -8,13 +8,11 @@ use Gacela\Framework\Gacela; use GacelaTest\Feature\Framework\ListeningEvents\ClassResolver\Module\Facade; use PHPUnit\Framework\Attributes\PreserveGlobalState; -use PHPUnit\Framework\Attributes\RunInSeparateProcess; use PHPUnit\Framework\TestCase; use RuntimeException; final class DisableListenersTest extends TestCase { - #[RunInSeparateProcess] #[PreserveGlobalState(false)] public function test_disable_class_resolver_listener(): void { diff --git a/tests/Feature/Framework/StaticFacade/FeatureTest.php b/tests/Feature/Framework/StaticFacade/FeatureTest.php index 751fb656..fa6974a3 100644 --- a/tests/Feature/Framework/StaticFacade/FeatureTest.php +++ b/tests/Feature/Framework/StaticFacade/FeatureTest.php @@ -10,7 +10,6 @@ use GacelaTest\Feature\Framework\StaticFacade\ModuleB\Facade as TestObjectFacade; use GacelaTest\Feature\Framework\StaticFacade\ModuleB\Factory as ObjectFactory; use PHPUnit\Framework\Attributes\PreserveGlobalState; -use PHPUnit\Framework\Attributes\RunInSeparateProcess; use PHPUnit\Framework\TestCase; final class FeatureTest extends TestCase @@ -20,7 +19,6 @@ protected function setUp(): void Gacela::bootstrap(__DIR__); } - #[RunInSeparateProcess] #[PreserveGlobalState(false)] public function test_unknown_static_facade_method(): void { @@ -29,7 +27,6 @@ public function test_unknown_static_facade_method(): void TestStaticFacade::unknown(); } - #[RunInSeparateProcess] #[PreserveGlobalState(false)] public function test_unknown_object_factory_method(): void { @@ -38,7 +35,6 @@ public function test_unknown_object_factory_method(): void (new TestObjectFacade())->unknown(); } - #[RunInSeparateProcess] #[PreserveGlobalState(false)] public function test_unknown_static_factory_method(): void { @@ -47,7 +43,6 @@ public function test_unknown_static_factory_method(): void TestStaticFacade::unknownFacadeMethod(); } - #[RunInSeparateProcess] #[PreserveGlobalState(false)] public function test_module_a_static_facade(): void { @@ -56,7 +51,6 @@ public function test_module_a_static_facade(): void self::assertSame(StaticFactory::STR, $actual); } - #[RunInSeparateProcess] #[PreserveGlobalState(false)] public function test_module_a_object_facade(): void { @@ -65,7 +59,6 @@ public function test_module_a_object_facade(): void self::assertSame(ObjectFactory::STR, $actual); } - #[RunInSeparateProcess] #[PreserveGlobalState(false)] public function test_factory_static_facade_method(): void {