diff --git a/EventSubscriberInterface.php b/EventSubscriberInterface.php index 2085e42..ca0d696 100644 --- a/EventSubscriberInterface.php +++ b/EventSubscriberInterface.php @@ -45,5 +45,5 @@ interface EventSubscriberInterface * * @return array> */ - public static function getSubscribedEvents(); + public static function getSubscribedEvents(): array; } diff --git a/Tests/Debug/WrappedListenerTest.php b/Tests/Debug/WrappedListenerTest.php index 1a5fe11..4648105 100644 --- a/Tests/Debug/WrappedListenerTest.php +++ b/Tests/Debug/WrappedListenerTest.php @@ -11,6 +11,7 @@ namespace Symfony\Component\EventDispatcher\Tests\Debug; +use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\TestCase; use Symfony\Component\EventDispatcher\Debug\WrappedListener; use Symfony\Component\EventDispatcher\EventDispatcherInterface; @@ -19,9 +20,7 @@ class WrappedListenerTest extends TestCase { - /** - * @dataProvider provideListenersToDescribe - */ + #[DataProvider('provideListenersToDescribe')] public function testListenerDescription($listener, $expected) { $wrappedListener = new WrappedListener($listener, null, $this->createMock(Stopwatch::class), $this->createMock(EventDispatcherInterface::class)); diff --git a/Tests/EventDispatcherTest.php b/Tests/EventDispatcherTest.php index d6d0778..94f9ffc 100644 --- a/Tests/EventDispatcherTest.php +++ b/Tests/EventDispatcherTest.php @@ -411,8 +411,6 @@ public function testNamedClosures() $this->assertNotSame($callback1, $callback2); $this->assertNotSame($callback1, $callback3); $this->assertNotSame($callback2, $callback3); - $this->assertEquals($callback1, $callback2); - $this->assertEquals($callback1, $callback3); $this->dispatcher->addListener('foo', $callback1, 3); $this->dispatcher->addListener('foo', $callback2, 2); diff --git a/composer.json b/composer.json index 598bbdc..dba4d53 100644 --- a/composer.json +++ b/composer.json @@ -16,21 +16,21 @@ } ], "require": { - "php": ">=8.2", + "php": ">=8.4", "symfony/event-dispatcher-contracts": "^2.5|^3" }, "require-dev": { - "symfony/dependency-injection": "^6.4|^7.0", - "symfony/expression-language": "^6.4|^7.0", - "symfony/config": "^6.4|^7.0", - "symfony/error-handler": "^6.4|^7.0", - "symfony/http-foundation": "^6.4|^7.0", + "psr/log": "^1|^2|^3", + "symfony/config": "^7.4|^8.0", + "symfony/dependency-injection": "^7.4|^8.0", + "symfony/error-handler": "^7.4|^8.0", + "symfony/expression-language": "^7.4|^8.0", + "symfony/http-foundation": "^7.4|^8.0", "symfony/service-contracts": "^2.5|^3", - "symfony/stopwatch": "^6.4|^7.0", - "psr/log": "^1|^2|^3" + "symfony/stopwatch": "^7.4|^8.0" }, "conflict": { - "symfony/dependency-injection": "<6.4", + "symfony/security-http": "<7.4", "symfony/service-contracts": "<2.5" }, "provide": { diff --git a/phpunit.xml.dist b/phpunit.xml.dist index 4d47393..79bed7e 100644 --- a/phpunit.xml.dist +++ b/phpunit.xml.dist @@ -1,10 +1,11 @@ @@ -18,7 +19,7 @@ - + ./ @@ -27,5 +28,9 @@ ./Tests ./vendor - + + + + +