From d24561c652e120474c77300f5990953253e91260 Mon Sep 17 00:00:00 2001 From: Podlesnov Phedor Date: Wed, 23 Jun 2021 15:32:30 +0300 Subject: [PATCH] =?UTF-8?q?=D0=9D=D0=B0=D0=B7=D0=BD=D0=B0=D1=87=D0=B5?= =?UTF-8?q?=D0=BD=D0=B8=D0=B5=20=D1=84=D0=BE=D1=80=D0=BC=D0=B0=D1=82=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Settings.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Settings.php b/src/Settings.php index 661cbb2..5ba0767 100644 --- a/src/Settings.php +++ b/src/Settings.php @@ -14,9 +14,9 @@ class Settings extends Collection protected $file; protected $format = 'php'; - public function __construct ($file = null) + public function __construct ($file = null, $format = false) { - $this->format = pathinfo($file, PATHINFO_EXTENSION); + $this->format = $format ? $format : pathinfo($file, PATHINFO_EXTENSION); $this->file = $file; }