Skip to content

Commit

Permalink
Merge pull request #323 from gacela-project/fix/better-php84-support-2
Browse files Browse the repository at this point in the history
Better PHP 8.4 support
  • Loading branch information
Chemaclass authored Dec 12, 2024
2 parents 9391a1d + 62cb6d9 commit c2e757b
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 9 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand Down
7 changes: 0 additions & 7 deletions tests/Feature/Framework/StaticFacade/FeatureTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -20,7 +19,6 @@ protected function setUp(): void
Gacela::bootstrap(__DIR__);
}

#[RunInSeparateProcess]
#[PreserveGlobalState(false)]
public function test_unknown_static_facade_method(): void
{
Expand All @@ -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
{
Expand All @@ -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
{
Expand All @@ -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
{
Expand All @@ -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
{
Expand All @@ -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
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c2e757b

Please sign in to comment.