Problem/Motivation
\Drupal\fastly\Api::__construct is using the wrong type hint for the messenger service. Causing a fatal error when installing the Drupal Canvas module.
TypeError: Drupal\fastly\Api::__construct(): Argument #10 ($messenger) must be of type Drupal\Core\Messenger\Messenger, Drupal\canvas\Messenger given in Drupal\fastly\Api->__construct() (lin
e 145
Steps to reproduce
- Install Drupal Canvas
- or override the messenger service and rebuild container
Proposed resolution
Replace the type with \Drupal\Core\Messenger\MessengerInterface
Remaining tasks
User interface changes
API changes
Data model changes
Issue fork fastly-3555387
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
marcusml commentedComment #4
berdirTypes should always use interfaces, makes sense.
Comment #5
richo_au commentedI have also confirmed this does indeed fix the issue. Thank you for the patch!
I've reached out to our Fastly account team to ask them if this can please be reviewed and put in to a 4.0.5 release.
Comment #7
pameeela commented