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 for Creation of dynamic property Fastly\Configuration::$apiKeys is deprecated #48

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

bpleon
Copy link

@bpleon bpleon commented Mar 5, 2024

The Problem

Getting Creation of dynamic property Fastly\Configuration::$apiKeys is deprecated when using PHP 8.3.
Dynamic properties have been deprecated in PHP8.2.
Fastly\Configuration dynamically sets $apiKeys as an array.

The Fix

Define the property to the class.

@bartoszgadomski
Copy link

+1 to this; we're also seeing this reported in logs.

[23-Apr-2024 10:42:09 UTC] Deprecated: Creation of dynamic property Fastly\Configuration::$apiKeys is deprecated in /var/www/public/plugins/vendor/fastly/fastly/lib/Configuration.php on line 193

@koriym
Copy link

koriym commented Sep 2, 2024

+1 to this;

@harmony7
Copy link
Contributor

Thanks for the feedback, we're taking a look at this

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

Successfully merging this pull request may close these issues.

4 participants