Drupal 10.3.x GitLabCI failures

Created on 26 June 2024, 10 months ago
Updated 10 July 2024, 9 months ago

Problem/Motivation

$ php vendor/bin/phpstan analyze $_WEB_ROOT/modules/custom/$CI_PROJECT_NAME $PHPSTAN_CONFIGURATION --no-progress --error-format=gitlab > phpstan-quality-report.json || true
$ php vendor/bin/phpstan analyze $_WEB_ROOT/modules/custom/$CI_PROJECT_NAME $PHPSTAN_CONFIGURATION --no-progress || EXIT_CODE=$?
 ------ ------------------------------------------------------------------------------------- 
  Line   tests/src/Kernel/ConfigSnapshotStorageTest.php                                       
 ------ ------------------------------------------------------------------------------------- 
  100    Return type mixed of method                                                          
         Drupal\Tests\config_snapshot\Kernel\ConfigSnapshotStorageTest::testInvalidStorage()  
         is not covariant with return type void of method                                     
         Drupal\KernelTests\Core\Config\Storage\ConfigStorageTestBase::testInvalidStorage().  
 ------ ------------------------------------------------------------------------------------- 
 [ERROR] Found 1 error       
Drupal: 10.3.1-dev
PHP 8.1.29 (cli) (built: Jun  6 2024 17:38:49) (NTS)
Copyright (c) The PHP Group
Zend Engine v4.1.29, Copyright (c) Zend Technologies
    with Zend OPcache v8.1.29, Copyright (c), by Zend Technologies
$ _PHPUNIT_TESTGROUPS=$(echo $_PHPUNIT_TESTGROUPS | sed -e 's/ //g')
$ if [ "$_PHPUNIT_CONCURRENT" == "0" ]; then # collapsed multi-line command
_PHPUNIT_CONCURRENT=0, _PHPUNIT_TESTGROUPS=--all, _PHPUNIT_EXTRA= WHAT_TO_RUN=
executing: sudo -u www-data -E vendor/bin/phpunit --printer=\Drupal\Tests\Listeners\HtmlOutputPrinter --bootstrap /builds/project/config_snapshot/web/core/tests/bootstrap.php /builds/project/config_snapshot/web/modules/custom/config_snapshot --log-junit /builds/project/config_snapshot/junit.xml  
PHP Fatal error:  Declaration of Drupal\Tests\config_snapshot\Kernel\ConfigSnapshotStorageTest::testInvalidStorage() must be compatible with Drupal\KernelTests\Core\Config\Storage\ConfigStorageTestBase::testInvalidStorage(): void in /builds/project/config_snapshot/tests/src/Kernel/ConfigSnapshotStorageTest.php on line 100

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Fixed

Version

2.0

Component

Code

Created by

🇺🇸United States joegraduate Arizona, USA

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024