From 49a9c7fb6ca53ad3c48f282e917df3f2a27c3a7a Mon Sep 17 00:00:00 2001 From: Adam Kadlec Date: Sun, 26 May 2019 19:07:18 +0200 Subject: [PATCH] - Fixin method call --- src/IPub/WebSockets/Server/FlashWrapper.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/IPub/WebSockets/Server/FlashWrapper.php b/src/IPub/WebSockets/Server/FlashWrapper.php index 2056c5a..66749be 100644 --- a/src/IPub/WebSockets/Server/FlashWrapper.php +++ b/src/IPub/WebSockets/Server/FlashWrapper.php @@ -174,8 +174,8 @@ public function renderPolicy() : \SimpleXMLElement foreach ($this->access as $access) { $tmp = $policy->addChild('allow-access-from'); - $tmp->addAttribute('domain', $access[0]); - $tmp->addAttribute('to-ports', $access[1]); + $tmp->addAttribute('domain', (string) $access[0]); + $tmp->addAttribute('to-ports', (string) $access[1]); $tmp->addAttribute('secure', ($access[2] === TRUE) ? 'true' : 'false'); }