ArgumentCountError : Sms::__construct() Too few arguments passed

Created on 28 July 2023, over 1 year ago
Updated 8 August 2023, over 1 year ago

Problem/Motivation

With the latest version of twilio getting below error message

The website encountered an unexpected error. Please try again later.
ArgumentCountError: Too few arguments to function Drupal\twilio\Services\Sms::__construct(), 3 passed in /var/www/app/docroot/core/lib/Drupal/Component/DependencyInjection/Container.php on line 259 and exactly 4 expected in Drupal\twilio\Services\Sms->__construct() (line 49 of modules/contrib/twilio/src/Services/Sms.php).
Drupal\twilio\Services\Sms->__construct(Object, Object, Object) (Line: 259)

Steps to reproduce

With composer require 'drupal/twilio:^3.0@alpha'

Once the twilio configuration are added, we try to access the class were the sms dependencies is injected. It throws the error.

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Fixed

Component

Code

Created by

🇮🇳India mangesh.borukar

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

Comments & Activities

Production build 0.71.5 2024