From 8e85853af8756166617c2012cdc7719bbe7e3b98 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Elan=20Ruusam=C3=A4e?= Date: Tue, 17 Nov 2015 16:46:23 +0200 Subject: [PATCH] be compatible with php-5.3 --- composer.json | 2 +- lib/Minify.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/composer.json b/composer.json index 7c2919e..fb57f4d 100644 --- a/composer.json +++ b/composer.json @@ -22,7 +22,7 @@ "require": { "ext-pcre": "*", "firephp/firephp-core": "~0.4.0", - "php": ">=5.2.1", + "php": ">=5.3.0", "tubalmartin/cssmin": "~2.4.8", "mrclay/jsmin-php": "~2" }, diff --git a/lib/Minify.php b/lib/Minify.php index 9b208e3..f99330e 100644 --- a/lib/Minify.php +++ b/lib/Minify.php @@ -408,9 +408,9 @@ class Minify { $this->cache = new Minify_Cache_Null(); $env = new Minify_Env(); - $sourceFactory = new Minify_Source_Factory($env, [ + $sourceFactory = new Minify_Source_Factory($env, array( 'checkAllowDirs' => false, - ], $this->cache); + ), $this->cache); $controller = new Minify_Controller_Files($env, $sourceFactory); $options = array_merge($options, array(