Skip to content

Conversation

@PavelJurasek
Copy link
Contributor

Fixes compatibility with PHP 7.1 as it caused E_NOTICE: A non well formed numeric value encountered in Image.php:474.

@dg
Copy link
Member

dg commented Oct 19, 2016

@PavelJurasek
Copy link
Contributor Author

Done

@PavelJurasek
Copy link
Contributor Author

Is anything else needed?

@dg
Copy link
Member

dg commented Oct 22, 2016

abs() is missing

@PavelJurasek
Copy link
Contributor Author

Fixed

@dg
Copy link
Member

dg commented Oct 24, 2016

Thanks

@dg dg merged commit 53e7466 into nette:master Oct 24, 2016
{
if (is_string($newWidth) && substr($newWidth, -1) === '%') {
$newWidth = (int) round($srcWidth / 100 * abs($newWidth));
$newWidth = (int) round($srcWidth / 100 * substr($newWidth, 0, -1));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think that abs() should stay here

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

8683a0b was merged. abs is present in that commit.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants