Codeception / module-yii2

Codeception module for Yii2 framework
MIT License
16 stars 36 forks source link

Fix runtime fatal error Declaration in Yii2.php #93

Closed jafaripur closed 9 months ago

jafaripur commented 9 months ago

Upgrading symfony/browser-kit from v6.4.0 to v7.0.0 getting runtime error.

Codeception PHP Testing Framework v5.0.12 https://stand-with-ukraine.pp.ua
PHP Fatal error:  Declaration of Codeception\Lib\Connector\Yii2::restart() must be compatible with Symfony\Component\BrowserKit\AbstractBrowser::restart(): void in /var/www/html/test/vendor/codeception/module-yii2/src/Codeception/Lib/Connector/Yii2.php on line 483

Fatal error: Declaration of Codeception\Lib\Connector\Yii2::restart() must be compatible with Symfony\Component\BrowserKit\AbstractBrowser::restart(): void in /var/www/html/test/vendor/codeception/module-yii2/src/Codeception/Lib/Connector/Yii2.php on line 483

Add return type of restart method to void to implement method restart in parent AbstractBrowser class.