diff --git a/CHANGELOG.md b/CHANGELOG.md index 8c54bf0..e826083 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,12 @@ # Change Log -## 1.7.1 - 2019-12-17 +## 1.7.2 - 2019-12-27 + +### Fixed + +- Allow a condition to specify an interface and not just classes. + +## 1.7.1 - 2019-12-26 ### Fixed diff --git a/src/ClassDiscovery.php b/src/ClassDiscovery.php index ac4b2d8..355d076 100644 --- a/src/ClassDiscovery.php +++ b/src/ClassDiscovery.php @@ -228,7 +228,7 @@ protected static function instantiateClass($class) public static function safeClassExists($class) { try { - return class_exists($class); + return class_exists($class) || interface_exists($class); } catch (\Exception $e) { return false; }