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

Created on 1 March 2023, over 1 year ago
Updated 21 September 2023, 9 months ago

Problem/Motivation

Having the following

PHP Fatal error:  Type of Drupal\checklistapi\Commands\ChecklistapiCommands::$logger must be ?Psr\Log\LoggerInterface (as in class Drush\Commands\DrushCommands) in /var/www/html/test/drupal10test/docroot/modules/contrib/checklistapi/src/Commands/ChecklistapiCommands.php on line 18

Change records

This issue was fixed and committed in #3310067: Use \Drush\Commands\DrushCommands::logger() in ChecklistapiCommands
But not released yet.

Having a Real physical testing round for Checklist API 2.1.1 with Drupal ~10

Proposed resolution

Using the following commit patch as a TEMP fix for the 2.1.1 release
https://git.drupalcode.org/project/checklistapi/-/commit/4b02386.patch
Hoping for a release tag

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-10.0.0-alpha1 , varbase_core-10.0.0-alpha1

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

Release notes snippet

  • Issue #3345227 : Fixed Drupal 10 - PHP Fatal error: Type of ChecklistapiCommands::$logger must be LoggerInterface
📌 Task
Status

Fixed

Version

10.0

Component

Code

Created by

🇯🇴Jordan Rajab Natshah Jordan

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

Comments & Activities

Production build 0.69.0 2024