Skip to content

PHP 7.1 Compatibility #131

@silvioq

Description

@silvioq

Hi. I 'm using the library with PHP7.1

The warning "A non well formed numeric value encountered" is thrown here when I'm using margin-top with units (see http://php.net/manual/en/migration71.other-changes.php)

$diff = $value - $this->getAttribute($name);

$ ~/develop/composer.phar info | grep psliwa
psliwa/pdf-bundle                    1.0.3              This bundle integrates Symfony2 with PHPPdf library.
psliwa/php-pdf                       1.2.10             Pdf and graphic files generator library for PHP.

$ php -v
PHP 7.1.11-1+ubuntu14.04.1+deb.sury.org+1 (cli) (built: Oct 27 2017 14:28:45) ( NTS )
Copyright (c) 1997-2017 The PHP Group
Zend Engine v3.1.0, Copyright (c) 1998-2017 Zend Technologies
    with Zend OPcache v7.1.11-1+ubuntu14.04.1+deb.sury.org+1, Copyright (c) 1999-2017, by Zend Technologies

As workaround, I changed mm units for numeric value.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions