Skip to content

Commit c5a0ce2

Browse files
committed
Reverted php5.4 style array syntax to keep inline with the PHP >= 5.1 requirement defined in composer.json
1 parent 939b552 commit c5a0ce2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

phpfastcache/3.0.0/phpfastcache.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -202,8 +202,8 @@ public static function getPath($skip_create_path = false, $config) {
202202
}
203203

204204
public static function cleanFileName($filename) {
205-
$regex = ['/[\?\[\]\/\\\=\<\>\:\;\,\'\"\&\$\#\*\(\)\|\~\`\!\{\}]/','/\.$/','/^\./'];
206-
$replace = ['-','',''];
205+
$regex = array('/[\?\[\]\/\\\=\<\>\:\;\,\'\"\&\$\#\*\(\)\|\~\`\!\{\}]/','/\.$/','/^\./');
206+
$replace = array('-','','');
207207
return preg_replace($regex,$replace,$filename);
208208
}
209209

0 commit comments

Comments
 (0)