1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
|
From: William Desportes <williamdes@wdes.fr>
Date: Mon, 14 Apr 2025 21:27:12 +0200
Subject: Fix an undefined index error
Origin: vendor
Forwarded: no
---
src/Phing/Task/Ext/Sass/SassCompiler.php | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/Phing/Task/Ext/Sass/SassCompiler.php b/src/Phing/Task/Ext/Sass/SassCompiler.php
index 1b782c2..6dbc54e 100644
--- a/src/Phing/Task/Ext/Sass/SassCompiler.php
+++ b/src/Phing/Task/Ext/Sass/SassCompiler.php
@@ -52,7 +52,7 @@ class SassCompiler implements SassTaskCompiler
list($return, $output) = $this->executeCommand($inputFilePath, $outputFilePath);
if ($failOnError && $return !== 0) {
throw new BuildException(
- "Sass exited with return code {$return} and message '{$output[0]}'"
+ "Sass exited with return code {$return} and message '" . ($output[0] ?? '') . "'"
);
}
}
|