From: Edward Chernenko Date: Mon, 25 Jun 2018 22:45:13 +0000 (+0300) Subject: Fix PHP7 warning "non well formed numeric value encountered" X-Git-Tag: 1.34.0-rc.0~4959^2 X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=commitdiff_plain;h=0a4a274b6255cc543df459f16902c1619697068f Fix PHP7 warning "non well formed numeric value encountered" PHP 7.1 warns when non-numeric string is implicitly cast to integer. Change-Id: Ia46ea793e9495548c7d421b3372f6deaeda163f5 --- diff --git a/includes/media/FormatMetadata.php b/includes/media/FormatMetadata.php index 9ebc63f678..b98d7f1e74 100644 --- a/includes/media/FormatMetadata.php +++ b/includes/media/FormatMetadata.php @@ -271,7 +271,7 @@ class FormatMetadata extends ContextSource { // TODO: YCbCrCoefficients #p27 (see annex E) case 'ExifVersion': case 'FlashpixVersion': - $val = "$val" / 100; + $val = (int)$val / 100; break; case 'ColorSpace':