@@ -31,12 +31,13 @@ |
||
31 | 31 | * @return object of type $interface |
32 | 32 | * @throws \chillerlan\Database\DBException |
33 | 33 | */ |
34 | - protected function __loadClass($class, $interface, ...$params){ // phpDocumentor stumbles across the ... syntax |
|
34 | + protected function __loadClass($class, $interface, ...$params){ |
|
35 | +// phpDocumentor stumbles across the ... syntax |
|
35 | 36 | |
36 | 37 | if(class_exists($class)){ |
37 | 38 | $reflectionClass = new ReflectionClass($class); |
38 | 39 | |
39 | - if(!$reflectionClass->implementsInterface($interface)) { |
|
40 | + if(!$reflectionClass->implementsInterface($interface)){ |
|
40 | 41 | throw new DBException($class.' does not implement '.$interface); |
41 | 42 | } |
42 | 43 |