diff --git a/src/ConfigurationBuilder.php b/src/ConfigurationBuilder.php index f13feac..d9b61bb 100644 --- a/src/ConfigurationBuilder.php +++ b/src/ConfigurationBuilder.php @@ -68,27 +68,15 @@ public function build() : Configuration { $this->allowedHeaders, $this->exposableHeaders, $this->allowCredentials) implements Configuration { - private $origins; - private $methods; - private $maxAge; - private $allowedHeaders; - private $exposableHeaders; - private $allowCredentials; public function __construct( - array $origins, - array $methods, - ?int $maxAge, - array $allowedHeaders, - array $exposableHeaders, - bool $allowCredentials + private array $origins, + private array $methods, + private ?int $maxAge, + private array $allowedHeaders, + private array $exposableHeaders, + private bool $allowCredentials ) { - $this->origins = $origins; - $this->methods = $methods; - $this->maxAge = $maxAge; - $this->allowedHeaders = $allowedHeaders; - $this->exposableHeaders = $exposableHeaders; - $this->allowCredentials = $allowCredentials; } /**