Skip to content

Problem with PHP 7.4 and the solution #17

@gabrielssevero

Description

@gabrielssevero

There is a problem of compatibility with php 7.4, it is in the file: plugins\dmitrybykov\htmlminify\vendor\matthiasmullie\minify\src\CSS.php

The problem is in the line 528 in the implode, in php 7.4 you need to change the position of the glue element and the array, so change: '/(?<=[: ])('.implode(array_keys($colors), '|').')(?=[; }])/i',
for: '/(?<=[: ])('.implode('|', array_keys($colors)).')(?=[; }])/i',

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions