Skip to content

Commit 3b4eca0

Browse files
author
Christoph Singer
committed
Update cssmin requirement
1 parent ec11ef3 commit 3b4eca0

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

PrettyMin.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
namespace Wa72\HtmlPrettymin;
33

44
use JSMin\JSMin;
5+
use tubalmartin\CssMin\Minifier as CSSmin;
56
use Symfony\Component\OptionsResolver\OptionsResolver;
67

78
/**
@@ -183,7 +184,7 @@ protected function minifyCss()
183184
$code = $element->nodeValue;
184185
$element->nodeValue = '';
185186
if (trim($code)) {
186-
$min = new \CSSmin();
187+
$min = new CSSmin();
187188
if (trim($code)) {
188189
$code = trim($min->run($code));
189190
}

composer.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,9 @@
44
"type":"library",
55
"license":"MIT",
66
"require": {
7+
"php": ">=5.4",
78
"mrclay/jsmin-php": "^2.3",
8-
"tubalmartin/cssmin": "^2.4",
9+
"tubalmartin/cssmin": "^4",
910
"symfony/options-resolver": ">=2.3"
1011
},
1112
"require-dev": {

0 commit comments

Comments
 (0)