1
0
mirror of https://github.com/mrclay/minify.git synced 2025-08-13 17:44:00 +02:00

import classes instead of manual qualify

This commit is contained in:
Elan Ruusamäe
2018-01-05 14:35:57 +02:00
parent c580d24e1b
commit df7fddfa09
2 changed files with 41 additions and 28 deletions

View File

@@ -4,6 +4,8 @@
* @package Minify
*/
use InvalidArgumentException;
/**
* A content source to be minified by Minify.
*
@@ -137,7 +139,7 @@ class Minify_Source implements Minify_SourceInterface
$minifier = 'Minify::nullMinifier';
}
if ($minifier !== null && !is_callable($minifier, true)) {
throw new \InvalidArgumentException('minifier must be null or a valid callable');
throw new InvalidArgumentException('minifier must be null or a valid callable');
}
$this->minifier = $minifier;
}