kartik-v / mpdf

Fork of the mPDF latest DEV library (unofficial) with composer and packagist support.
GNU General Public License v2.0
40 stars 55 forks source link

PHP 7.1: Illegal string offset 'ID' #18

Closed danik2592 closed 7 years ago

danik2592 commented 7 years ago

Error has shown after php update to 7.1 version. On 7.0 it works fine.

        $mpdf = (new Pdf($this->pdfParams))->api;
        $mpdf->setAutoTopMargin = 'stretch';
        $mpdf->setAutoBottomMargin = 'stretch';
        $mpdf->SetFooter($footer); // error's here 
        $mpdf->WriteHTML($html);
        return $mpdf;

default

StalkAlex commented 7 years ago

+1

danik2592 commented 7 years ago

Fix in https://github.com/kartik-v/mpdf/commit/01689a83d4e428ef55645d0d0ff1d2f6268047a4