From 949baccdcb139477f03c336ec46c7e7076852eb6 Mon Sep 17 00:00:00 2001
From: Jan-Hendrik Willms <tleilax+studip@gmail.com>
Date: Wed, 18 May 2022 14:21:19 +0000
Subject: [PATCH] cast institute name to string

Closes #1076

Merge request studip/studip!643
---
 lib/classes/JsonApi/Schemas/Institute.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/classes/JsonApi/Schemas/Institute.php b/lib/classes/JsonApi/Schemas/Institute.php
index 9d304ad8b50..d3eda4ac133 100644
--- a/lib/classes/JsonApi/Schemas/Institute.php
+++ b/lib/classes/JsonApi/Schemas/Institute.php
@@ -22,7 +22,7 @@ class Institute extends SchemaProvider
     public function getAttributes($institute, ContextInterface $context): iterable
     {
         return [
-            'name' => $institute['Name'],
+            'name' => (string) $institute['Name'],
             'city' => $institute['Plz'],
             'street' => $institute['Strasse'],
             'phone' => $institute['telefon'],
-- 
GitLab