Problem/Motivation
When installing a clean Drupal 11 on PHP 8.3 and saving the settings with incorrect info, the next error is thrown:
Deprecated function: Calling get_class() without arguments is deprecated in Drupal\cloudflare_stream\Service\CloudflareStreamApi->handleError() (line 328 of /var/www/html/src/Service/CloudflareStreamApi.php)
Steps to reproduce
- Install a Drupal 11 with standard install profile
- Install the module and save its settings
- Try adding a field to an entity
Proposed resolution
Fix the error
Remaining tasks
Fix the error
User interface changes
N/A
API changes
N/A
Data model changes
N/A
Issue fork cloudflare_stream-3565043
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
garvitasakhrani commentedFixed PHP 8.3/8.4 deprecation warnings in CloudflareStreamApi.
Changes have been pushed to the issue fork branch 3565043-deprecated-function-calling.
Please review.
Comment #4
garvitasakhrani commentedComment #5
tim-dielsPlease create a MR from your branch so this can be reviewed. Without MR this is not possible. Please see https://www.drupal.org/docs/develop/git/using-gitlab-to-contribute-to-dr...
Comment #6
tim-dielsComment #8
garvitasakhrani commentedComment #9
tim-dielsPlease only do what is requested in this issue. You also tried to fix coding standards but didn't do all of them.
So I gonna revert the CS changes.
Comment #10
tim-dielsReverted the CS changes.
Comment #11
tim-dielsTested and error is gone now.
Comment #13
tim-diels