From 6dfdc2d0d6a6c4a17efafa28bacf720c32a6fd8c Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Sebasti=C3=A1n=20Iturra=20Vald=C3=A9s?=
 <iturra.sebastian@hotmail.com>
Date: Tue, 11 Jul 2017 16:19:19 -0400
Subject: [PATCH] refactoring write2DBarcode() in tcpdf

Function write2DBarcode() have problem in 7.1.6, with this fix run in PHP 5 Upwards.

http://php.net/manual/en/functions.arguments.php#functions.arguments.type-declaration.types
---
 tcpdf.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tcpdf.php b/tcpdf.php
index 65196e7..59758c3 100644
--- a/tcpdf.php
+++ b/tcpdf.php
@@ -15509,7 +15509,7 @@ class TCPDF {
 	 * @since 4.5.037 (2009-04-07)
 	 * @public
 	 */
-	public function write2DBarcode($code, $type, $x='', $y='', $w='', $h='', $style='', $align='', $distort=false) {
+	public function write2DBarcode($code, $type, $x='', $y='', $w='', $h='', $style=array(), $align='', $distort=false) {
 		if (TCPDF_STATIC::empty_string(trim($code))) {
 			return;
 		}