We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bc33343 commit 38a8625Copy full SHA for 38a8625
1 file changed
src/Cache.php
@@ -35,12 +35,16 @@ class Cache
35
36
/**
37
* Cache constructor.
38
- * @param IDriver $driver
39
- * @param null $driver_options
+ * @param $driver
+ * @param null|array $driver_options
40
*/
41
- public function __construct(IDriver $driver, $driver_options = null)
+ public function __construct($driver, $driver_options = null)
42
{
43
- $this->driver = new $driver($driver_options);
+ if(!is_null($driver_options))
44
+ $this->driver = new $driver($driver_options);
45
+ else
46
+ $this->driver = new $driver();
47
+
48
$this->items = new PCI($this);
49
}
50
0 commit comments