Skip to content

Commit cb2057e

Browse files
Macros: Explicitely cast return value to string
1 parent 4d1fd7c commit cb2057e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/Icingadb/Common/Macros.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,6 @@ public function resolveMacro(string $macro, $object): string
127127
$value = $value ? 'y' : 'n';
128128
}
129129

130-
return $value ?? $macro;
130+
return (string) ($value ?? $macro);
131131
}
132132
}

0 commit comments

Comments
 (0)