-
+
@@ -352,16 +349,16 @@
From PiedWeb/CMS 0.0.86 to Pushword
-
-
diff --git a/packages/static-generator/src/Generator/HtmlCompressor.php b/packages/static-generator/src/Generator/HtmlCompressor.php
index ad76cfe40..6fb0d05fe 100644
--- a/packages/static-generator/src/Generator/HtmlCompressor.php
+++ b/packages/static-generator/src/Generator/HtmlCompressor.php
@@ -2,7 +2,6 @@
namespace Pushword\StaticGenerator\Generator;
-use Exception;
use WyriHaximus\HtmlCompress\Factory as HtmlCompressorFactory;
class HtmlCompressor
@@ -11,7 +10,7 @@ public static function compress(string $html): string
{
// TODO wait for https://github.com/voku/simple_html_dom/pull/106 be merged to restor html compressor with PHP 8.3
// and remove package https://github.com/devteam-emroc/simple_html_dom in base and core
- $html = preg_replace('//s', '', $html) ?? throw new Exception();
+ $html = preg_replace('//s', '', $html) ?? throw new \Exception();
return $html; // return HtmlCompressorFactory::construct()->compress($html);
}