From 87818911601bc29ceac77654ccff99abdf81ac89 Mon Sep 17 00:00:00 2001 From: daycry <7590335+daycry@users.noreply.github.com> Date: Thu, 29 Jun 2023 17:54:14 +0200 Subject: [PATCH] cors --- src/Config/RestFul.php | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/Config/RestFul.php b/src/Config/RestFul.php index 5d4acbf..153aebb 100644 --- a/src/Config/RestFul.php +++ b/src/Config/RestFul.php @@ -180,7 +180,7 @@ class RestFul extends BaseConfig * * @var array */ - public $allowedHeaders = ['*']; + public array $allowedHeaders = ['*']; /** * -------------------------------------------------------------------------- @@ -191,7 +191,7 @@ class RestFul extends BaseConfig * * @var array */ - public $allowedMethods = ['*']; + public array $allowedMethods = ['*']; /** * -------------------------------------------------------------------------- @@ -203,7 +203,7 @@ class RestFul extends BaseConfig * * @var array */ - public $allowedOrigins = ['*']; + public array $allowedOrigins = ['*']; /** * -------------------------------------------------------------------------- @@ -214,7 +214,7 @@ class RestFul extends BaseConfig * * @var array */ - public $allowedOriginsPatterns = []; + public array $allowedOriginsPatterns = []; /** * -------------------------------------------------------------------------- @@ -225,7 +225,7 @@ class RestFul extends BaseConfig * * @var array */ - public $exposedHeaders = []; + public array $exposedHeaders = []; /** * -------------------------------------------------------------------------- @@ -236,7 +236,7 @@ class RestFul extends BaseConfig * * @var int */ - public $maxAge = 0; + public int $maxAge = 0; /** * -------------------------------------------------------------------------- @@ -253,7 +253,7 @@ class RestFul extends BaseConfig * * @var boolean */ - public $supportsCredentials = false; + public bool $supportsCredentials = false; /** * --------------------------------------------------------------------------