We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 17e4cdb commit 56d30aaCopy full SHA for 56d30aa
src/DriverManager.php
@@ -213,7 +213,7 @@ public function enable(string $className): void
213
public function isEnabled(string $className): bool
214
{
215
$this->ensureConfiguration();
216
- return isset($this->drivers[$className]);
+ return array_key_exists($className, $this->drivers);
217
}
218
219
/**
@@ -235,7 +235,7 @@ public function isEnabled(string $className): bool
235
public function get(string $className): object
236
237
238
- if (!isset($this->drivers[$className]))
+ if (!array_key_exists($className, $this->drivers))
239
240
throw new NotEnabledException($className);
241
0 commit comments