Bump tecnickcom/tcpdf dependency to support php 8 (#12816)

Also fix undefined variable error
This commit is contained in:
Jellyfrog 2021-04-30 05:43:47 +02:00 committed by GitHub
parent 61c89794e4
commit 49ec6aabd6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 19 additions and 9 deletions

View File

@ -56,7 +56,7 @@
"predis/predis": "^1.1",
"rmccue/requests": "^1.7",
"symfony/yaml": "^4.0",
"tecnickcom/tcpdf": "~6.2.0",
"tecnickcom/tcpdf": "^6.4",
"tightenco/ziggy": "^0.9",
"wpb/string-blade-compiler": "^6.0"
},

23
composer.lock generated
View File

@ -4,7 +4,7 @@
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
"This file is @generated automatically"
],
"content-hash": "85d20b0e5d6205452dac25d0d5db067b",
"content-hash": "dae39e5a41421453723b043a8a321e35",
"packages": [
{
"name": "amenadiel/jpgraph",
@ -6469,16 +6469,16 @@
},
{
"name": "tecnickcom/tcpdf",
"version": "6.2.26",
"version": "6.4.1",
"source": {
"type": "git",
"url": "https://github.com/tecnickcom/TCPDF.git",
"reference": "367241059ca166e3a76490f4448c284e0a161f15"
"reference": "5ba838befdb37ef06a16d9f716f35eb03cb1b329"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/tecnickcom/TCPDF/zipball/367241059ca166e3a76490f4448c284e0a161f15",
"reference": "367241059ca166e3a76490f4448c284e0a161f15",
"url": "https://api.github.com/repos/tecnickcom/TCPDF/zipball/5ba838befdb37ef06a16d9f716f35eb03cb1b329",
"reference": "5ba838befdb37ef06a16d9f716f35eb03cb1b329",
"shasum": ""
},
"require": {
@ -6507,7 +6507,7 @@
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"LGPL-3.0"
"LGPL-3.0-only"
],
"authors": [
{
@ -6528,9 +6528,16 @@
"qrcode"
],
"support": {
"source": "https://github.com/tecnickcom/TCPDF/tree/master"
"issues": "https://github.com/tecnickcom/TCPDF/issues",
"source": "https://github.com/tecnickcom/TCPDF/tree/6.4.1"
},
"time": "2018-10-16T17:24:05+00:00"
"funding": [
{
"url": "https://www.paypal.com/cgi-bin/webscr?cmd=_donations&currency_code=GBP&business=paypal@tecnick.com&item_name=donation%20for%20tcpdf%20project",
"type": "custom"
}
],
"time": "2021-03-27T16:00:33+00:00"
},
{
"name": "tightenco/ziggy",

View File

@ -3,6 +3,9 @@
$pdf->AddPage('L');
$where = '1';
$param = [];
$data = [];
if (is_numeric($_GET['device_id'])) {
$where .= ' AND E.device_id = ?';
$param[] = $_GET['device_id'];