"patch -d vendor/slim/slim/ -p3 < ../patches/slim-php81.patch",
"patch -d vendor/smarty/smarty/ -p3 < ../patches/smarty-php81.patch",
"patch -d vendor/mathmarques/smarty-view/ -p3 < ../patches/smarty-view-php81.patch",
- "patch -d vendor/laminas/ -p2 < ../patches/laminas-php81.patch"
+ "patch -d vendor/laminas/ -p2 < ../patches/laminas-php81.patch",
+ "patch -d vendor/tecnickcom/tcpdf/ -p3 < ../patches/tcpdf-php81.patch"
]
}
}
);
}
+diff -up vendor/slim/slim/Slim/Http/Stream.php.patch vendor/slim/slim/Slim/Http/Stream.php
+--- vendor/slim/slim/Slim/Http/Stream.php.patch 2021-11-24 05:52:35.953125135 +0100
++++ vendor/slim/slim/Slim/Http/Stream.php 2021-11-24 06:02:19.388606169 +0100
+@@ -399,7 +399,7 @@ class Stream implements StreamInterface
+ */
+ public function write($string)
+ {
+- if (!$this->isWritable() || ($written = fwrite($this->stream, $string)) === false) {
++ if (!$this->isWritable() || ($written = fwrite($this->stream, $string ?? '')) === false) {
+ throw new RuntimeException('Could not write to stream');
+ }
+
--- /dev/null
+diff -up vendor/tecnickcom/tcpdf/include/tcpdf_images.php.patch vendor/tecnickcom/tcpdf/include/tcpdf_images.php
+--- vendor/tecnickcom/tcpdf/include/tcpdf_images.php.patch 2021-11-24 06:24:49.340507070 +0100
++++ vendor/tecnickcom/tcpdf/include/tcpdf_images.php 2021-11-24 06:25:00.907754698 +0100
+@@ -79,7 +79,7 @@ class TCPDF_IMAGES {
+ }
+ }
+ if (empty($type)) {
+- $type = strtolower(trim(pathinfo(parse_url($imgfile, PHP_URL_PATH), PATHINFO_EXTENSION)));
++ $type = strtolower(trim(pathinfo(parse_url($imgfile, PHP_URL_PATH) ?? '', PATHINFO_EXTENSION)));
+ }
+ if ($type == 'jpg') {
+ $type = 'jpeg';
+diff -up vendor/tecnickcom/tcpdf/tcpdf.php.patch vendor/tecnickcom/tcpdf/tcpdf.php
+--- vendor/tecnickcom/tcpdf/tcpdf.php.patch 2021-11-24 05:56:44.695440293 +0100
++++ vendor/tecnickcom/tcpdf/tcpdf.php 2021-11-24 05:58:00.574064870 +0100
+@@ -7357,7 +7357,7 @@ class TCPDF {
+ $color = imagecolorat($img, $xpx, $ypx);
+ // get and correct gamma color
+ $alpha = $this->getGDgamma($img, $color);
+- imagesetpixel($imgalpha, $xpx, $ypx, $alpha);
++ imagesetpixel($imgalpha, intval($xpx), intval($ypx), intval($alpha));
+ }
+ }
+ imagepng($imgalpha, $tempfile_alpha);