fastly-php icon indicating copy to clipboard operation
fastly-php copied to clipboard

Fix for Creation of dynamic property Fastly\Configuration::$apiKeys is deprecated

Open bpleon opened this issue 1 year ago • 3 comments

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.

bpleon avatar Mar 05 '24 22:03 bpleon

+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

bartoszgadomski avatar Apr 23 '24 10:04 bartoszgadomski

+1 to this;

koriym avatar Sep 02 '24 06:09 koriym

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

harmony7 avatar Sep 13 '24 05:09 harmony7