: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in
namespace Nextend\Framework\Asset\Css\Less;
use Nextend\Framework\Asset\AssetManager;
use Nextend\Framework\Asset\Css\Css;
public static function addFile($pathToFile, $group, $context = array(), $importDir = null) {
AssetManager::$less->addFile(array(
'importDir' => $importDir
public static function build() {
foreach (AssetManager::$less->getFiles() as $group => $file) {
if (substr($file, 0, 2) == '//') {
} else if (!realpath($file)) {
// For database cache the $file contains the content of the generated CSS file
Css::addCode($file, $group, true);
Css::addFile($file, $group);