Codeception / module-yii2

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

Incompatible with `codeception/lib-innerbrowser` 4.0.2 / `symfony/browserkit` 7.x on PHP 8.2 #94

Closed particleflux closed 7 months ago

particleflux commented 8 months ago

Happens directly on test start, with a suite using the Yii2 module:

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

Info:

$ php -v
PHP 8.2.13 (cli) (built: Jan  3 2024 09:59:36) (NTS)
Copyright (c) The PHP Group
Zend Engine v4.2.13, Copyright (c) Zend Technologies
    with Zend OPcache v8.2.13, Copyright (c), by Zend Technologies
    with Xdebug v3.2.1, Copyright (c) 2002-2023, by Derick Rethans

composer show 'codeception/*'

codeception/c3                2.9.0  CodeCoverage collector for Codeception
codeception/codeception       5.0.13 BDD-style testing framework
codeception/lib-asserts       2.1.0  Assertion methods used by Codeception core and Asserts module
codeception/lib-innerbrowser  4.0.2  Parent library for all Codeception framework modules and PhpBrowser
codeception/lib-web           1.0.4  Library containing files used by module-webdriver and lib-innerbrowser or module-phpbrowser
codeception/lib-xml           1.0.1  Files used by module-rest and module-soap
codeception/module-asserts    3.0.0  Codeception module containing various assertions
codeception/module-filesystem 3.0.1  Codeception module for testing local filesystem
codeception/module-rest       3.3.2  REST module for Codeception
codeception/module-webdriver  4.0.0  WebDriver module for Codeception
codeception/module-yii2       1.1.9  Codeception module for Yii2 framework
codeception/stub              4.1.2  Flexible Stub wrapper for PHPUnit's Mock Builder
codeception/verify            3.0.0  BDD assertion library for PHPUnit

composer show 'symfony/*'

symfony/browser-kit                v7.0.0  Simulates the behavior of a web browser, allowing you to make requests, click on links and submit forms programmatically
symfony/config                     v7.0.0  Helps you find, load, combine, autofill and validate configuration values of any kind
symfony/console                    v7.0.1  Eases the creation of beautiful and testable command line interfaces
symfony/css-selector               v6.4.0  Converts CSS selectors to XPath expressions
symfony/dependency-injection       v7.0.1  Allows you to standardize and centralize the way objects are constructed in your application
symfony/deprecation-contracts      v3.4.0  A generic function and convention to trigger deprecation notices
symfony/dom-crawler                v7.0.0  Eases DOM navigation for HTML and XML documents
symfony/dotenv                     v7.0.0  Registers environment variables from a .env file
symfony/event-dispatcher           v6.4.0  Provides tools that allow your application components to communicate with each other by dispatching events and listening to them
symfony/event-dispatcher-contracts v3.4.0  Generic abstractions related to dispatching event
symfony/filesystem                 v7.0.0  Provides basic utilities for the filesystem
symfony/finder                     v7.0.0  Finds files and directories via an intuitive fluent interface
symfony/mailer                     v6.3.0  Helps sending emails
symfony/mime                       v6.3.3  Allows manipulating MIME messages
symfony/options-resolver           v7.0.0  Provides an improved replacement for the array_replace PHP function
symfony/polyfill-ctype             v1.28.0 Symfony polyfill for ctype functions
symfony/polyfill-intl-grapheme     v1.28.0 Symfony polyfill for intl's grapheme_* functions
symfony/polyfill-intl-idn          v1.28.0 Symfony polyfill for intl's idn_to_ascii and idn_to_utf8 functions
symfony/polyfill-intl-normalizer   v1.28.0 Symfony polyfill for intl's Normalizer class and related functions
symfony/polyfill-mbstring          v1.28.0 Symfony polyfill for the Mbstring extension
symfony/polyfill-php72             v1.28.0 Symfony polyfill backporting some PHP 7.2+ features to lower PHP versions
symfony/process                    v6.4.0  Executes commands in sub-processes
symfony/service-contracts          v3.4.0  Generic abstractions related to writing services
symfony/string                     v7.0.0  Provides an object-oriented API to strings and deals with bytes, UTF-8 code points and grapheme clusters in a unified way
symfony/var-dumper                 v7.0.0  Provides mechanisms for walking through any arbitrary PHP variable
symfony/var-exporter               v7.0.1  Allows exporting any serializable PHP data structure to plain PHP code
symfony/yaml                       v6.4.0  Loads and dumps YAML files
particleflux commented 8 months ago

Oh, I see this has already been fixed in b95385d8b66cc1b9515b887830b782e7f4c62af9, but is not released yet. Any chance for a release? :)

samdark commented 7 months ago

Yep.

samdark commented 7 months ago

Done.