Problem/Motivation
Upon installing installing the module via /admin/modules/, you immediately get the following error...
Deprecated function: Creation of dynamic property Drupal\aws_cloudwatchlogs\Services\PutLogEvents::$describelogGroupHandler is deprecated in Drupal\aws_cloudwatchlogs\Services\PutLogEvents->__construct() (line 112 of modules/contrib/aws_cloudwatchlogs/src/Services/PutLogEvents.php).
Drupal\aws_cloudwatchlogs\Services\PutLogEvents->__construct(Object, Object, Object, Object, Object, Object, Object, Object) (Line: 261)
Drupal\Component\DependencyInjection\Container->createService(Array, 'aws_cloudwatchlogs.put_log_events') (Line: 179)
Drupal\Component\DependencyInjection\Container->get('aws_cloudwatchlogs.put_log_events', 1) (Line: 438)
Drupal\Component\DependencyInjection\Container->resolveServicesAndParameters(Array) (Line: 239)
Drupal\Component\DependencyInjection\Container->createService(Array, 'aws_cloudwatchlogs.log') (Line: 179)
Drupal\Component\DependencyInjection\Container->get('aws_cloudwatchlogs.log', 1) (Line: 438)
Drupal\Component\DependencyInjection\Container->resolveServicesAndParameters(Array) (Line: 275)
Drupal\Component\DependencyInjection\Container->createService(Array, 'logger.factory') (Line: 179)
Steps to reproduce
Just installing it, I do have the Sodium module also installed which I don't believe is important.
Seeing the error running both PHP 8.2 and PHP 8.3
Comments
Comment #2
jeremy.oleary commentedComment #3
sarwan_verma commentedComment #5
sarwan_verma commentedHi,
I have resolved the deprecated function issue and created MR!6.
Could you please review it?
Thanks!
Comment #6
jeremy.oleary commentedAttaching the patch you generated as this is our standard workflow.
Comment #7
greg boggsThe patch works perfectly for us.
Comment #9
ciprian.stavovei commentedNice! Thanks for the fix.
Merged and will go out with the next release.