Skip to content

Commit

Permalink
cors
Browse files Browse the repository at this point in the history
  • Loading branch information
daycry committed Jun 29, 2023
1 parent d6d0619 commit 8781891
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/Config/RestFul.php
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ class RestFul extends BaseConfig
*
* @var array
*/
public $allowedHeaders = ['*'];
public array $allowedHeaders = ['*'];

/**
* --------------------------------------------------------------------------
Expand All @@ -191,7 +191,7 @@ class RestFul extends BaseConfig
*
* @var array
*/
public $allowedMethods = ['*'];
public array $allowedMethods = ['*'];

/**
* --------------------------------------------------------------------------
Expand All @@ -203,7 +203,7 @@ class RestFul extends BaseConfig
*
* @var array
*/
public $allowedOrigins = ['*'];
public array $allowedOrigins = ['*'];

/**
* --------------------------------------------------------------------------
Expand All @@ -214,7 +214,7 @@ class RestFul extends BaseConfig
*
* @var array
*/
public $allowedOriginsPatterns = [];
public array $allowedOriginsPatterns = [];

/**
* --------------------------------------------------------------------------
Expand All @@ -225,7 +225,7 @@ class RestFul extends BaseConfig
*
* @var array
*/
public $exposedHeaders = [];
public array $exposedHeaders = [];

/**
* --------------------------------------------------------------------------
Expand All @@ -236,7 +236,7 @@ class RestFul extends BaseConfig
*
* @var int
*/
public $maxAge = 0;
public int $maxAge = 0;

/**
* --------------------------------------------------------------------------
Expand All @@ -253,7 +253,7 @@ class RestFul extends BaseConfig
*
* @var boolean
*/
public $supportsCredentials = false;
public bool $supportsCredentials = false;

/**
* --------------------------------------------------------------------------
Expand Down

0 comments on commit 8781891

Please sign in to comment.