Skip to content

Commit 878b617

Browse files
authored
Bugfix/Properly handle passed null to $className parameter (#2)
1 parent 952f957 commit 878b617

File tree

3 files changed

+17
-18
lines changed

3 files changed

+17
-18
lines changed

.idea/php.xml

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/workspace.xml

Lines changed: 15 additions & 17 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/Container.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -497,7 +497,7 @@ protected function create($className)
497497
*/
498498
protected function exists($className)
499499
{
500-
return class_exists($className) || $this->container->bound($className);
500+
return !!$className && class_exists($className) || $this->container->bound($className);
501501
}
502502

503503
}

0 commit comments

Comments
 (0)