File: Fix-an-undefined-index-error.patch

package info (click to toggle)
phing 3.0.1-2
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 9,868 kB
  • sloc: php: 59,850; xml: 9,713; sql: 78; makefile: 39; sh: 14
file content (23 lines) | stat: -rw-r--r-- 931 bytes parent folder | download
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] ?? '') . "'"
             );
         }
     }