: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in
namespace Smush\Core\Parser;
class Composite_Element {
public function __construct( $markup, $tag, $elements ) {
$this->elements = $elements;
public function get_markup(): string {
public function get_tag(): string {
public function get_elements(): array {
public function has_updates() {
foreach ( $this->elements as $element ) {
if ( $element->has_updates() ) {
public function get_updated() {
$updated = $this->markup;
foreach ( $this->elements as $element ) {
if ( $element->has_updates() ) {
$element->get_updated_markup(),