We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 6a5cb62 + 366a549 commit 16a3327Copy full SHA for 16a3327
CHANGELOG.md
@@ -1,6 +1,12 @@
1
# Change Log
2
3
-## 1.7.1 - 2019-12-17
+## 1.7.2 - 2019-12-27
4
+
5
+### Fixed
6
7
+- Allow a condition to specify an interface and not just classes.
8
9
+## 1.7.1 - 2019-12-26
10
11
### Fixed
12
src/ClassDiscovery.php
@@ -228,7 +228,7 @@ protected static function instantiateClass($class)
228
public static function safeClassExists($class)
229
{
230
try {
231
- return class_exists($class);
+ return class_exists($class) || interface_exists($class);
232
} catch (\Exception $e) {
233
return false;
234
}
0 commit comments