1
0
mirror of https://github.com/mrclay/minify.git synced 2025-02-06 07:48:44 +01:00

be compatible with php-5.3

This commit is contained in:
Elan Ruusamäe 2015-11-17 16:46:23 +02:00
parent 590cf9b57e
commit 8e85853af8
2 changed files with 3 additions and 3 deletions

View File

@ -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"
},

View File

@ -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(