From b9fd8cb2869fab7633272ceb9385e99f1c315705 Mon Sep 17 00:00:00 2001 From: Glenn McLelland Date: Sat, 25 Nov 2017 11:29:42 -0600 Subject: [PATCH] Fix PHP 7.1 errors This fixes the PHP 7.1 errors as explained by @adrian at https://processwire.com/talk/topic/5630-module-aiom-all-in-one-minify-for-css-less-js-and-html/?do=findComment&comment=128784. A non well formed numeric value encountered on line 713 notice --- AllInOneMinify.module | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/AllInOneMinify.module b/AllInOneMinify.module index 585f42a..e9b400c 100644 --- a/AllInOneMinify.module +++ b/AllInOneMinify.module @@ -710,7 +710,7 @@ class AllInOneMinify extends WireData implements Module, ConfigurableModule { // Calculate timestamp of all files // ------------------------------------------------------------------------ foreach ($files as $file) { - $_timestamp = ($_timestamp + $file['last_modified']); + $_timestamp = ((int)$_timestamp + $file['last_modified']); } // ------------------------------------------------------------------------