Manage Instances throws fatal error

Created on 5 April 2024, about 2 months ago
Updated 19 April 2024, about 1 month ago

Problem/Motivation

Using a dev version of Smart Date, I get a fatal error when trying to use the Manage Instances interface:

TypeError: Drupal\smart_date_recur\Controller\Instances::__construct(): Argument #3 ($smartDateRecurManager) must be of type Drupal\smart_date_recur\SmartDateRecurManagerInterface, Drupal\smart_date_recur\SmartDateRecurManager given, called in /var/www/html/web/modules/custom/smart_date/modules/smart_date_recur/src/Controller/Instances.php on line 99 in Drupal\smart_date_recur\Controller\Instances->__construct() (line 81 of /var/www/html/web/modules/custom/smart_date/modules/smart_date_recur/src/Controller/Instances.php).

As part of the changes in πŸ“Œ PHPCS: \Drupal calls should be avoided in classes, use dependency injection instead, other issues Fixed , the Instances controller was updated to reference a an interface class that doesn't exist and isn't implemented by SmartDateRecurManager.

Proposed resolution

Either revert to referencing the SmartDateRecurManager, or create and implement the interface.

πŸ› Bug report
Status

Fixed

Version

4.1

Component

Smart Date Recur

Created by

πŸ‡¨πŸ‡¦Canada mandclu

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

Merge Requests

Comments & Activities

Production build 0.69.0 2024