Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
octaroot opened this issue Jun 15, 2024 · 1 comment

Comments

@octaroot
Copy link

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
@afterlogic-support
Copy link
Member

Thank you, I have forwarded this information to the developers.

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

No branches or pull requests

2 participants