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

Fix deprecated warnings for dynamic property creation #47

Merged
merged 1 commit into from
Aug 14, 2024
Merged

Fix deprecated warnings for dynamic property creation #47

merged 1 commit into from
Aug 14, 2024

Conversation

timwassenburg
Copy link

This PR addresses deprecated warnings related to the dynamic property Picqer\Api\PicqerWebhook::$rawPayload. The warnings, such as:

PHP Deprecated: Deprecated: Creation of dynamic property Picqer\Api\PicqerWebhook::$rawPayload is deprecated (0) in /var/www/html/vendor/picqer/api-client/src/PicqerWebhook.php:21

occurred because $rawPayload was being dynamically created. This PR resolves the issue by explicitly declaring the $rawPayload property in the PicqerWebhook class to prevent these warnings.

@casperbakker casperbakker merged commit cee5974 into picqer:main Aug 14, 2024
@casperbakker
Copy link
Member

Thanks Tim

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

Successfully merging this pull request may close these issues.

3 participants