fastly-php
fastly-php copied to clipboard
Fix for Creation of dynamic property Fastly\Configuration::$apiKeys is deprecated
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.
+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
+1 to this;
Thanks for the feedback, we're taking a look at this