Fix Drupal 10 PHP 8.1 Fatal error : Declaration of Varbase Update Helper Commands setLogger must be compatible with Drush Commands setLogger

Created on 21 September 2023, about 1 year ago
Updated 15 October 2023, about 1 year ago

Problem/Motivation

📌 Fix Drupal 10 - PHP Fatal error: Type of ChecklistapiCommands::$logger must be LoggerInterface Fixed

PHP Fatal error:  Declaration of Drupal\varbase_update_helper\Commands\VarbaseUpdateHelperCommands::setLogger(Psr\Log\LoggerInterface $logger) must be compatible with Drush\Commands\DrushCommands::setLogger(Psr\Log\LoggerInterface $logger): void in /var/www/html/test/varbase10t1test1/docroot/modules/contrib/varbase_core/modules/varbase_update_helper/src/Commands/VarbaseUpdateHelperCommands.php on line 35

Change records

Update code that implements \Psr\Log\LoggerInterface due to Psr/Log version 3
#3272447: Update to PSR/log v3
#3264918: Update symfony/console to Symfony 6

Proposed resolution

Add void as return type

Remaining tasks

  • ✅ File an issue about this project
  • ✅ Addition/Change/Update/Fix to this project
  • ✅ Testing to ensure no regression
  • ➖ Automated unit/functional testing coverage
  • ➖ Developer Documentation support on feature change/addition
  • ➖ User Guide Documentation support on feature change/addition
  • ➖ Accessibility and Readability
  • ✅ Code review from 1 Varbase core team member
  • ✅ Full testing and approval
  • ✅ Credit contributors
  • ✅ Review with the product owner
  • ✅ Update Release Notes and Update Helper on new feature change/addition
  • ✅ Release varbase-9.0.16 , varbase_core-9.0.64

Varbase update type

  • ✅ No Update
  • ➖ Optional Update
  • ➖ Forced Update
  • ➖ Forced Update if Unchanged

User interface changes

  • N/A

API changes

  • N/A

Data model changes

  • N/A

Data model changes

  • Issue #3388795 by YazanMajadba : Fixed Drupal 10 PHP 8.1 Fatal error : Declaration of Varbase Update Helper Commands setLogger must be compatible with Drush Commands setLogger
📌 Task
Status

Fixed

Version

9.0

Component

Code

Created by

🇯🇴Jordan YazanMajadba

Live updates comments and jobs are added and updated live.
  • PHP 8.1

    The issue particularly affects sites running on PHP version 8.1.0 or later.

Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024