From 676bc826dfeac9502bde00656f3418a2e1655660 Mon Sep 17 00:00:00 2001 From: Mohammad Alavi Date: Fri, 8 Apr 2022 18:48:24 +0430 Subject: [PATCH] fix: super & subclass property type mismatches --- .../UI/API/Transformers/PermissionTransformer.php | 4 ++-- .../Authorization/UI/API/Transformers/RoleTransformer.php | 4 ++-- .../AppSection/User/UI/API/Transformers/UserTransformer.php | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/app/Containers/AppSection/Authorization/UI/API/Transformers/PermissionTransformer.php b/app/Containers/AppSection/Authorization/UI/API/Transformers/PermissionTransformer.php index bf50e698f..b13a255df 100644 --- a/app/Containers/AppSection/Authorization/UI/API/Transformers/PermissionTransformer.php +++ b/app/Containers/AppSection/Authorization/UI/API/Transformers/PermissionTransformer.php @@ -7,11 +7,11 @@ class PermissionTransformer extends Transformer { - protected $availableIncludes = [ + protected array $availableIncludes = [ ]; - protected $defaultIncludes = [ + protected array $defaultIncludes = [ ]; diff --git a/app/Containers/AppSection/Authorization/UI/API/Transformers/RoleTransformer.php b/app/Containers/AppSection/Authorization/UI/API/Transformers/RoleTransformer.php index 4ee144096..78b598918 100644 --- a/app/Containers/AppSection/Authorization/UI/API/Transformers/RoleTransformer.php +++ b/app/Containers/AppSection/Authorization/UI/API/Transformers/RoleTransformer.php @@ -8,11 +8,11 @@ class RoleTransformer extends Transformer { - protected $availableIncludes = [ + protected array $availableIncludes = [ ]; - protected $defaultIncludes = [ + protected array $defaultIncludes = [ 'permissions', ]; diff --git a/app/Containers/AppSection/User/UI/API/Transformers/UserTransformer.php b/app/Containers/AppSection/User/UI/API/Transformers/UserTransformer.php index c6b23d13e..470646088 100644 --- a/app/Containers/AppSection/User/UI/API/Transformers/UserTransformer.php +++ b/app/Containers/AppSection/User/UI/API/Transformers/UserTransformer.php @@ -9,11 +9,11 @@ class UserTransformer extends Transformer { - protected $availableIncludes = [ + protected array $availableIncludes = [ 'roles', ]; - protected $defaultIncludes = [ + protected array $defaultIncludes = [ ];