Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix runtime fatal error Declaration in Yii2.php #93

Merged
merged 1 commit into from Dec 4, 2023

Conversation

jafaripur
Copy link
Contributor

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.

Upgrading `symfony/browser-kit` from `v6.4.0` to `v7.0.0` getting runtime error.
@SamMousa SamMousa merged commit 2971f1f into Codeception:master Dec 4, 2023
3 checks passed
@jafaripur jafaripur deleted the patch-1 branch December 10, 2023 07:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants