From c12cd9af9596b294b88f1660a7bca247e2f08af4 Mon Sep 17 00:00:00 2001 From: Pascal Paulis Date: Mon, 18 Mar 2024 11:45:02 +0100 Subject: [PATCH 1/2] added missing allowed types to constructor (#239) Signed-off-by: Pascal Paulis --- src/Model/ViewModel.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Model/ViewModel.php b/src/Model/ViewModel.php index cb4e349e7..93aaddc18 100644 --- a/src/Model/ViewModel.php +++ b/src/Model/ViewModel.php @@ -76,7 +76,7 @@ class ViewModel implements ModelInterface, ClearableModelInterface, RetrievableC /** * Constructor * - * @param null|array|Traversable|ArrayAccess $variables + * @param null|array|Traversable|ArrayAccess|array|Traversable|ArrayAccess $variables * @param null|array|Traversable $options */ public function __construct($variables = null, $options = null) From 6f0c49bc755c3bd47b4322a4ad6986e065880a38 Mon Sep 17 00:00:00 2001 From: Pascal Paulis Date: Mon, 18 Mar 2024 11:54:14 +0100 Subject: [PATCH 2/2] added missing allowed types to constructor (#239) Signed-off-by: Pascal Paulis --- src/Model/ViewModel.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Model/ViewModel.php b/src/Model/ViewModel.php index 93aaddc18..82dcd513e 100644 --- a/src/Model/ViewModel.php +++ b/src/Model/ViewModel.php @@ -76,8 +76,9 @@ class ViewModel implements ModelInterface, ClearableModelInterface, RetrievableC /** * Constructor * - * @param null|array|Traversable|ArrayAccess|array|Traversable|ArrayAccess $variables - * @param null|array|Traversable $options + * @param null $variables null|array|Traversable|ArrayAccess| + * array|Traversable|ArrayAccess $variables + * @param null $options null|array|Traversable $options */ public function __construct($variables = null, $options = null) {