From 7a73d781f2507c899196a4b7dc7607df73e3eb5d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Elan=20Ruusam=C3=A4e?= Date: Wed, 16 Dec 2015 22:50:35 +0200 Subject: [PATCH] closure: mute output for f5c12ad --- lib/Minify/ClosureCompiler.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/Minify/ClosureCompiler.php b/lib/Minify/ClosureCompiler.php index f0ebe4a..99658cb 100644 --- a/lib/Minify/ClosureCompiler.php +++ b/lib/Minify/ClosureCompiler.php @@ -35,6 +35,7 @@ class Minify_ClosureCompiler { const OPTION_CHARSET = 'charset'; const OPTION_COMPILATION_LEVEL = 'compilation_level'; + const OPTION_WARNING_LEVEL = 'warning_level'; public static $isDebug = false; @@ -151,15 +152,17 @@ class Minify_ClosureCompiler array( self::OPTION_CHARSET => 'utf-8', self::OPTION_COMPILATION_LEVEL => 'SIMPLE_OPTIMIZATIONS', + self::OPTION_WARNING_LEVEL => 'QUIET', ), $userOptions ); + $charsetOption = $o[self::OPTION_CHARSET]; if (preg_match('/^[\\da-zA-Z0-9\\-]+$/', $charsetOption)) { $args[] = "--charset {$charsetOption}"; } - foreach (array(self::OPTION_COMPILATION_LEVEL) as $opt) { + foreach (array(self::OPTION_COMPILATION_LEVEL, self::OPTION_WARNING_LEVEL) as $opt) { if ($o[$opt]) { $args[] = "--{$opt} " . escapeshellarg($o[$opt]); }