From de89d4e42bb41e421d95fabff3d69ea4c6555466 Mon Sep 17 00:00:00 2001 From: Sukhwinder Dhillon Date: Fri, 19 Apr 2024 09:10:36 +0200 Subject: [PATCH] Run `composer install` to apply patch --- vendor/composer/installed.json | 5 +++++ vendor/iio/libmergepdf/PATCHES.txt | 7 +++++++ vendor/iio/libmergepdf/tcpdi/fpdf_tpl.php | 14 +++++++------- 3 files changed, 19 insertions(+), 7 deletions(-) create mode 100644 vendor/iio/libmergepdf/PATCHES.txt diff --git a/vendor/composer/installed.json b/vendor/composer/installed.json index 2131da4..0b28c81 100644 --- a/vendor/composer/installed.json +++ b/vendor/composer/installed.json @@ -81,6 +81,11 @@ }, "time": "2020-12-07T12:18:49+00:00", "type": "library", + "extra": { + "patches_applied": { + "Add PHP 8.2 support": "patches/iio-libmergepdf-support-php82.patch" + } + }, "installation-source": "dist", "autoload": { "psr-4": { diff --git a/vendor/iio/libmergepdf/PATCHES.txt b/vendor/iio/libmergepdf/PATCHES.txt new file mode 100644 index 0000000..ae343e1 --- /dev/null +++ b/vendor/iio/libmergepdf/PATCHES.txt @@ -0,0 +1,7 @@ +This file was automatically generated by Composer Patches (https://github.com/cweagans/composer-patches) +Patches applied to this directory: + +Add PHP 8.2 support +Source: patches/iio-libmergepdf-support-php82.patch + + diff --git a/vendor/iio/libmergepdf/tcpdi/fpdf_tpl.php b/vendor/iio/libmergepdf/tcpdi/fpdf_tpl.php index 0da7d7b..5322fa8 100644 --- a/vendor/iio/libmergepdf/tcpdi/fpdf_tpl.php +++ b/vendor/iio/libmergepdf/tcpdi/fpdf_tpl.php @@ -145,7 +145,7 @@ function beginTemplate($x = null, $y = null, $w = null, $h = null) { function endTemplate() { if (is_subclass_of($this, 'TCPDF')) { $args = func_get_args(); - return call_user_func_array(array($this, 'TCPDF::endTemplate'), $args); + return call_user_func_array(array('TCPDF', 'endTemplate'), $args); } if ($this->_intpl) { @@ -275,7 +275,7 @@ function getTemplateSize($tplidx, $_w = 0, $_h = 0) { public function SetFont($family, $style = '', $size = 0, $fontfile='', $subset='default', $out=true) { if (is_subclass_of($this, 'TCPDF')) { $args = func_get_args(); - return call_user_func_array(array($this, 'TCPDF::SetFont'), $args); + return call_user_func_array(array('TCPDF', 'SetFont'), $args); } parent::SetFont($family, $style, $size); @@ -299,7 +299,7 @@ function Image( ) { if (is_subclass_of($this, 'TCPDF')) { $args = func_get_args(); - return call_user_func_array(array($this, 'TCPDF::Image'), $args); + return call_user_func_array(array('TCPDF', 'Image'), $args); } $ret = parent::Image($file, $x, $y, $w, $h, $type, $link); @@ -320,7 +320,7 @@ function Image( function AddPage($orientation = '', $format = '', $keepmargins = false, $tocpage = false) { if (is_subclass_of($this, 'TCPDF')) { $args = func_get_args(); - return call_user_func_array(array($this, 'TCPDF::AddPage'), $args); + return call_user_func_array(array('TCPDF', 'AddPage'), $args); } if ($this->_intpl) @@ -335,7 +335,7 @@ function AddPage($orientation = '', $format = '', $keepmargins = false, $tocpage function Link($x, $y, $w, $h, $link, $spaces = 0) { if (is_subclass_of($this, 'TCPDF')) { $args = func_get_args(); - return call_user_func_array(array($this, 'TCPDF::Link'), $args); + return call_user_func_array(array('TCPDF', 'Link'), $args); } if ($this->_intpl) @@ -347,7 +347,7 @@ function Link($x, $y, $w, $h, $link, $spaces = 0) { function AddLink() { if (is_subclass_of($this, 'TCPDF')) { $args = func_get_args(); - return call_user_func_array(array($this, 'TCPDF::AddLink'), $args); + return call_user_func_array(array('TCPDF', 'AddLink'), $args); } if ($this->_intpl) @@ -358,7 +358,7 @@ function AddLink() { function SetLink($link, $y = 0, $page = -1) { if (is_subclass_of($this, 'TCPDF')) { $args = func_get_args(); - return call_user_func_array(array($this, 'TCPDF::SetLink'), $args); + return call_user_func_array(array('TCPDF', 'SetLink'), $args); } if ($this->_intpl)