1
0
mirror of https://github.com/tecnickcom/TCPDF.git synced 2025-03-23 15:39:38 +01:00

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
This commit is contained in:
Sebastián Iturra Valdés 2017-07-11 16:19:19 -04:00 committed by GitHub
parent 95c5938aaf
commit 6dfdc2d0d6

@ -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;
}