: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in
namespace Nextend\Framework\Cache;
class StoreImage extends AbstractCache {
protected $_storageEngine = 'filesystem';
protected function getScope() {
public function makeCache($fileName, $content) {
if (!$this->isImage($fileName)) {
if (!$this->exists($fileName)) {
$this->set($fileName, $content);
return $this->getPath($fileName);
private function isImage($fileName) {
$supported_image = array(
$ext = strtolower(pathinfo($fileName, PATHINFO_EXTENSION));
if (in_array($ext, $supported_image)) {