From 49c6ae3ed50c5a67f2d1da353dc5567bbec92b02 Mon Sep 17 00:00:00 2001 From: YOo Slim Date: Sat, 4 Feb 2023 17:06:01 +0100 Subject: [PATCH] Fix typo mistake with typehint As for PHP5.1+, array typehint is accepted --- src/Drivers/Database.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Drivers/Database.php b/src/Drivers/Database.php index e0d7899..8868360 100644 --- a/src/Drivers/Database.php +++ b/src/Drivers/Database.php @@ -42,7 +42,7 @@ class Database extends Driver /** * Keys which should be encrypt automatically. * - * @var string + * @var array */ protected $encrypted_keys; @@ -64,13 +64,13 @@ class Database extends Driver * @param \Illuminate\Database\Connection $connection * @param string $table */ - public function __construct(Connection $connection, $table = null, $key = null, $value = null, $encrypted_keys = []) + public function __construct(Connection $connection, $table = null, $key = null, $value = null, array $encrypted_keys = []) { $this->connection = $connection; $this->table = $table ?: 'settings'; $this->key = $key ?: 'key'; $this->value = $value ?: 'value'; - $this->encrypted_keys = $encrypted_keys ?: []; + $this->encrypted_keys = $encrypted_keys; } /**