Fix for deprecated PHP features

Update encodeUrlQuery to make method static and prevent errors related to call non static method in static way
This commit is contained in:
Ivan Koliadynskyy 2020-01-23 14:57:37 +02:00 committed by GitHub
parent a428c95eaf
commit 0f84e8e754
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1856,7 +1856,7 @@ class TCPDF_STATIC {
* @since 6.3.3 (2019-11-01)
* @public static
*/
public function encodeUrlQuery($url) {
public static function encodeUrlQuery($url) {
$urlData = parse_url($url);
if (isset($urlData['query']) && $urlData['query']) {
$urlQueryData = [];