: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in
namespace Nextend\Framework\Asset\Css\Less;
use Nextend\Framework\Cache\Manifest;
class Cache extends \Nextend\Framework\Asset\Css\Cache {
public $outputFileType = "less.css";
public function getAssetFile($group, &$files = array(), &$codes = array()) {
$cache = new Manifest($group, false, true);
$hash = $this->getHash();
return $cache->makeCache($group . "." . $this->outputFileType, $hash, array(
public function getCachedContent($cache) {
foreach ($this->files as $parameters) {
$compiler = new LessCompiler();
if (!empty($parameters['importDir'])) {
$compiler->addImportDir($parameters['importDir']);
$compiler->setVariables($parameters['context']);
$fileContents .= $compiler->compileFile($parameters['file']);
protected function makeFileHash($parameters) {
return json_encode($parameters) . filemtime($parameters['file']);
protected function parseFile($cache, $content, $lessParameters) {
return parent::parseFile($cache, $content, $lessParameters['file']);