From 7131aa7f42e3864506925f25293e66593ef63cae Mon Sep 17 00:00:00 2001 From: Naveen Valecha Date: Mon, 8 Jul 2024 15:30:44 +0530 Subject: [PATCH] PHP 8.2 - Fixed dynamic property declaration deprecation. --- src/NLPCloud.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/NLPCloud.php b/src/NLPCloud.php index 9bda753..92ae6aa 100644 --- a/src/NLPCloud.php +++ b/src/NLPCloud.php @@ -8,6 +8,9 @@ class NLPCloud const API_VERSION = 'v1'; const BASE_URL = 'https://api.nlpcloud.io'; + protected $headers; + protected $rootURL; + public function __construct($model, $token, $gpu = false, $lang = '', $asynchronous = false) { $this->headers = array(