Creation of dynamic property AlibabaCloud\SDK\Dysmsapi\V20170525\Models\SendSmsRequest::$PhoneNumbers is deprecated
由于PHP版本较高,使用阿里云短信sdk报错:
Creation of dynamic property AlibabaCloud\SDK\Dysmsapi\V20170525\Models\SendSmsRequest::$PhoneNumbers is deprecated
解决办法:找到文件vendor/alibabacloud/dysmsapi-20170525/src/Models/SendSmsRequest.php,添加#[\AllowDynamicProperties]
#[\AllowDynamicProperties]
class SendSmsRequest extends Model