https://www.drupal.org/project/cloudinary/issues/3013451

This issue introduced the context property.

I have this error message because of using PHP 8.2:

Deprecated function: Creation of dynamic property Drupal\cloudinary_stream_wrapper\StreamWrapper\CloudinaryStreamWrapper::$context is deprecated in Drupal\Core\Image\Image->__construct() (line 54 of core/lib/Drupal/Core/Image/Image.php). 

I can't find any place where "context" is actually used in the Wrapper.

If one can show me where is it used indeed, I'll be glad to add the property.

Issue fork cloudinary-3394440

Command icon 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

sashainparis created an issue. See original summary.

sashainparis’s picture

StatusFileSize
new880 bytes
sashainparis’s picture

Issue summary: View changes

This first patch provided is not working: removing the context key here is not enough. Might be present in the resource itself?

Not sure if this makes sense be is not enough - or if it's just a wrong direction.

adaddinsane made their first commit to this issue’s fork.

adaddinsane’s picture

The issue is avoided by adding a "$context" property in the CloudinaryStreamWrapper so that it's not dynamic.

adaddinsane’s picture

Problem continues to exist for Drupal 10.

aurora.luzzardi’s picture

StatusFileSize
new656 bytes

I have a patch to add the $context on it, I attached here.

aurora.luzzardi’s picture

Status: Active » Needs review