We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 363318e commit 218096fCopy full SHA for 218096f
lib/Pipe/Context.php
@@ -43,20 +43,20 @@ function dependOn($path)
43
44
function evaluate($path, $options = array())
45
{
46
- if (!is_file($path)) {
47
- throw new UnexpectedValueException("Asset $path not found");
48
- }
49
-
50
if (isset($options['data'])) {
51
$data = $options['data'];
52
} else {
+ if (!is_file($path)) {
+ throw new UnexpectedValueException("Asset $path not found");
+ }
+
53
$data = @file_get_contents($path);
54
}
55
56
$subContext = $this->createSubContext();
57
58
if (array_key_exists("processors", $options)) {
59
- $processors = $options["processors"];
+ $processors = (array) $options["processors"];
60
61
$processors = array();
62
0 commit comments