From 8d20c494fbc5dd18d3b665afae2d70a4d59cd85d Mon Sep 17 00:00:00 2001 From: mhedderich <31847838+mhedderich@users.noreply.github.com> Date: Wed, 15 Jan 2020 22:24:49 +0100 Subject: [PATCH 1/3] Fixed datamatrix.php for PHP 7.4 Resolved deprecation error: "Deprecated: Array and string offset access syntax with curly braces is deprecated" --- include/barcodes/datamatrix.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/barcodes/datamatrix.php b/include/barcodes/datamatrix.php index 19b46fa..783f99d 100644 --- a/include/barcodes/datamatrix.php +++ b/include/barcodes/datamatrix.php @@ -629,7 +629,7 @@ class Datamatrix { if ($numch[ENC_C40] == $numch[ENC_X12]) { $k = ($pos + $charscount + 1); while ($k < $data_length) { - $tmpchr = ord($data{$k}); + $tmpchr = ord($data[$k]); if ($this->isCharMode($tmpchr, ENC_X12)) { return ENC_X12; } elseif (!($this->isCharMode($tmpchr, ENC_X12) OR $this->isCharMode($tmpchr, ENC_C40))) { From 9c75c9c7d28855a1c27ef15c16ad17d5281eed4c Mon Sep 17 00:00:00 2001 From: gpenverne Date: Tue, 28 Jan 2020 10:08:38 +0100 Subject: [PATCH 2/3] handle integers for pages --- tcpdf.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tcpdf.php b/tcpdf.php index 0ee30bc..582a418 100644 --- a/tcpdf.php +++ b/tcpdf.php @@ -12382,7 +12382,7 @@ class TCPDF { $x = $this->w; } $fixed = false; - if (!empty($page) AND ($page[0] == '*')) { + if ((string)$page && (((string)$page)[0] == '*')) { $page = intval(substr($page, 1)); // this page number will not be changed when moving/add/deleting pages $fixed = true; From f08c237c564a2282c8fd20729ac4031e83c6d950 Mon Sep 17 00:00:00 2001 From: Nicola Asuni Date: Sat, 1 Feb 2020 10:23:41 +0000 Subject: [PATCH 3/3] Create FUNDING.yml --- .github/FUNDING.yml | 1 + 1 file changed, 1 insertion(+) create mode 100644 .github/FUNDING.yml diff --git a/.github/FUNDING.yml b/.github/FUNDING.yml new file mode 100644 index 0000000..ca5b429 --- /dev/null +++ b/.github/FUNDING.yml @@ -0,0 +1 @@ +custom: ['https://www.paypal.com/cgi-bin/webscr?cmd=_donations¤cy_code=GBP&business=paypal@tecnick.com&item_name=donation%20for%20tcpdf%20project']