-
Notifications
You must be signed in to change notification settings - Fork 12
Open
Description
Background:
When using this SDK with newer than PHP 8.2 the following warning/error occurs due to the use of dynamic properties, which are causing deprecated warning:
Deprecated: Creation of dynamic property ... is deprecated
Steps to Reproduce:
Install the SDK in a project running PHP 8.2
Instantiate classes that assign values to undeclared properties.
Observe deprecation warnings in logs.
Expected Behavior:
The SDK should be compatible with >= PHP 8.2 without triggering deprecated dynamic property notices.
Possible Solution:
Declare all used properties explicitly in class definitions.
or usage of the #[\AllowDynamicProperties] attribute where applicable.
Environment:
PHP version: 8.2.x
SDK version: ^22
RFC
Metadata
Metadata
Assignees
Labels
No labels