Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
> Drupal\Core\Composer\Composer::upgradePHPUnit
PHP Fatal error: Declaration of Drupal\Tests\cron_example\Functional\CronExampleTest::setUp() must be compatible with Drupal\Tests\examples\Functional\ExamplesBrowserTestBase::setUp(): void in /var/www/html/modules/contrib/examples/modules/cron_example/tests/src/Functional/CronExampleTest.php on line 33
Steps to reproduce
Proposed resolution
- Add typehint to
::setUp()
- Change
public
::setUp()
toprotected
Remaining tasks
User interface changes
API changes
Data model changes
Comment | File | Size | Author |
---|---|---|---|
#2 | 3342565-2.patch | 9.31 KB | jungle |
Comments
Comment #2
jungleComment #5
jungleComment #6
jungle