minkphp / MinkBrowserKitDriver

Symfony2 BrowserKit driver for Mink framework
MIT License
551 stars 80 forks source link

Incompatible interface in 2.2.0 version #179

Closed ivanmunozruiz closed 5 days ago

ivanmunozruiz commented 2 months ago

I have updated to 2.2.0 version and I receive this error Fatal error: Declaration of Behat\Mink\Driver\BrowserKitDriver::visit(string $url) must be compatible with Behat\Mink\Driver\CoreDriver::visit($url) in /srv/api/vendor/behat/mink-browserkit-driver/src/BrowserKitDriver.php on line 120

aik099 commented 2 months ago

@ivanmunozruiz , what is the Mink version requirement in your composer.json?

stof commented 1 week ago

Version 2.2.0 requires version ^1.11 of behat/mink, which has a signature Behat\Mink\Driver\CoreDriver::visit(string $url). So this error should not happen (unless you made a weird thing to force composer to install an incompatible version)