From 6f3e5f605ea2f267b86e7d82c4da104df9ccc92d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Fr=C3=A9mont?= Date: Mon, 5 Jan 2026 16:44:06 +0100 Subject: [PATCH] Add support for Symfony 8 --- .github/workflows/test.yaml | 2 ++ composer.json | 4 ++-- src/Behat/MinkExtension/Listener/SessionsListener.php | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 1cd6311e..f13b414f 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -29,6 +29,8 @@ jobs: include: - php-version: '8.2' symfony-version: '7.0.*' + - php-version: '8.2' + symfony-version: '8.0.*' steps: - name: Checkout uses: actions/checkout@v6 diff --git a/composer.json b/composer.json index 80d39463..668747ec 100644 --- a/composer.json +++ b/composer.json @@ -22,9 +22,9 @@ "homepage": "https://github.com/FriendsOfBehat/MinkExtension#readme", "require": { "php": "^7.4 || ^8", - "behat/behat": "^3.0.5", + "behat/behat": "^3.0.5 || ^4.0@dev", "behat/mink": "^1.5", - "symfony/config": "^4.4 || ^5.0 || ^6.0 || ^7.0" + "symfony/config": "^4.4 || ^5.0 || ^6.0 || ^7.0 || ^8.0" }, "require-dev": { "behat/mink-goutte-driver": "^1.1 || ^2.0", diff --git a/src/Behat/MinkExtension/Listener/SessionsListener.php b/src/Behat/MinkExtension/Listener/SessionsListener.php index 69216394..f2b87ae9 100644 --- a/src/Behat/MinkExtension/Listener/SessionsListener.php +++ b/src/Behat/MinkExtension/Listener/SessionsListener.php @@ -59,7 +59,7 @@ public function __construct(Mink $mink, $defaultSession, $javascriptSession, arr /** * {@inheritdoc} */ - public static function getSubscribedEvents() + public static function getSubscribedEvents(): array { return array( ScenarioTested::BEFORE => array('prepareDefaultMinkSession', 10),