From 1f3e17dd5dd8d0ad9fc212cf2d7b7ffcca6109c6 Mon Sep 17 00:00:00 2001 From: Raphael Jorel Date: Thu, 7 Aug 2025 12:54:10 +0200 Subject: [PATCH 1/2] Add JSON extension as requirement --- composer.json | 1 + 1 file changed, 1 insertion(+) diff --git a/composer.json b/composer.json index e944706..2562cc6 100644 --- a/composer.json +++ b/composer.json @@ -6,6 +6,7 @@ "license": "MIT", "require": { "php": ">=7.0", + "ext-json": "*", "illuminate/support": "^5.5 || ^6.0 || ^7.0 || ^8.0 || ^9.0 || ^10.0 || ^11.0 || ^12.0", "guzzlehttp/guzzle": ">=6.5", "monolog/monolog": ">=1.0" From 35f7149ea114c7d4f2027d925abfc4432dcebd84 Mon Sep 17 00:00:00 2001 From: Raphael Jorel Date: Thu, 7 Aug 2025 12:54:44 +0200 Subject: [PATCH 2/2] Fix columnset value formatting in notifications --- src/TeamsNotification.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/TeamsNotification.php b/src/TeamsNotification.php index e0ce03c..f845dad 100644 --- a/src/TeamsNotification.php +++ b/src/TeamsNotification.php @@ -158,7 +158,7 @@ protected function buildNormalMessageCard($message) private function formatValue($value): string { if (is_array($value) || is_object($value)) { - json_encode((array) $value, JSON_PRETTY_PRINT); + return json_encode((array) $value, JSON_PRETTY_PRINT); } return (string) $value;