From d7ee949a6a3a95891e527dc659f8ea83fd0d1e9d Mon Sep 17 00:00:00 2001 From: Joby Elliott Date: Thu, 23 Aug 2018 16:28:20 -0600 Subject: [PATCH] squelch notice --- src/DriverFactory.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/DriverFactory.php b/src/DriverFactory.php index 1190585..35f0315 100644 --- a/src/DriverFactory.php +++ b/src/DriverFactory.php @@ -12,7 +12,7 @@ class DriverFactory public static function factory(string $dsn, string $username=null, string $password=null, array $options=null, string $type = null) : ?Drivers\DSODriverInterface { if (!$type) { - $type = array_shift(explode(':', $dsn, 2)); + $type = @array_shift(explode(':', $dsn, 2)); } $type = strtolower($type); if ($class = @static::$map[$type]) {