Skip to content

PHP Deprecated: Creation of dynamic property MailSo\\Base\\StreamWrappers\\Literal::$context is deprecated #111

Description

@octaroot

Running version 9.7.8.build11-build-o3 and PHP 8.3.6 (Ubuntu 24.04 LTS).

Deprecated since PHP 8.2. As per https://www.php.net/manual/en/migration82.deprecated.php#migration82.deprecated.core.dynamic-properties PHP docs suggest either:

  • Declaring the property (preferred).
  • Adding the #[\AllowDynamicProperties] attribute to the class (which also applies to all child classes).
  • Using a WeakMap if additional data needs to be associated with an object which one does not own.

I have noticed two separate instances of this:

PHP Deprecated:  Creation of dynamic property MailSo\\Base\\StreamWrappers\\Literal::$context is deprecated in /var/www/html/vendor/afterlogic/mailso/lib/MailSo/Base/StreamWrappers/Literal.php on line 64
PHP Deprecated:  Creation of dynamic property MailSo\\Base\\StreamWrappers\\Binary::$context is deprecated in /var/www/html/vendor/afterlogic/mailso/lib/MailSo/Base/StreamWrappers/Binary.php on line 238

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions