From 91074b2e7183b8a310433c809e01bf267edc5e0b Mon Sep 17 00:00:00 2001
From: Yozhef <hisemjo@gmail.com>
Date: Tue, 18 Jan 2022 17:59:14 +0200
Subject: [PATCH] Update UPGRADE-1.0.md

---
 UPGRADE-1.0.md | 32 ++++++++++++++++++++++++++++++++
 1 file changed, 32 insertions(+)

diff --git a/UPGRADE-1.0.md b/UPGRADE-1.0.md
index 39d5b7a..a63f8f9 100644
--- a/UPGRADE-1.0.md
+++ b/UPGRADE-1.0.md
@@ -82,3 +82,35 @@ Security Optional:
             security: false
 ```
 
+Step 3: Update Custom Health Check
+----------------------------------
+We need change return type array -> Response class
+
+
+### Old:
+```
+use SymfonyHealthCheckBundle\Dto\Response;
+
+class StatusUpCheck implements CheckInterface
+{
+    public function check(): array
+    {
+        return ['status' => 'up'];
+    }
+}
+```
+
+### New:
+```
+use SymfonyHealthCheckBundle\Dto\Response;
+
+class StatusUpCheck implements CheckInterface
+{
+    public function check(): Response
+    {
+        return new Response('status', true, 'up');
+    }
+}
+```
+
+