- Issue created by @ryanrobinson_wlu
- 🇨🇦Canada ryanrobinson_wlu
Here's a patch, if there's anybody else like me who can't run any unit tests even on our own custom modules while this fatal error is still in place.
- First commit to issue fork.
I believe this is a quick one: if I run a phpunit test, I get:
PHP Fatal error: Declaration of Drupal\Tests\auto_heading_ids\HeadingIdFilterTest::setUp() must be compatible with Drupal\Tests\UnitTestCase::setUp(): void in /opt/drupal/web/modules/contrib/auto_heading_ids/tests/src/Unit/HeadingIdFilterTest.php on line 28
Drupal 10.3.6
PHP 8.2.22
Run phpunit from the command line
I believe all it needs is to add the ": void" as part of the SetUp function definition, on line 28.
Active
2.0
Code
Here's a patch, if there's anybody else like me who can't run any unit tests even on our own custom modules while this fatal error is still in place.