Skip to content

Commit f95ae3f

Browse files
fix merge
1 parent 114f556 commit f95ae3f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

ClassExistsMock.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,17 +30,17 @@ public static function withMockedClasses(array $classes)
3030

3131
public static function class_exists($name, $autoload = true)
3232
{
33-
return (bool) (self::$classes[ltrim($name, '\\')] ?? class_exists($name, $autoload));
33+
return (bool) (self::$classes[ltrim($name, '\\')] ?? \class_exists($name, $autoload));
3434
}
3535

3636
public static function interface_exists($name, $autoload = true)
3737
{
38-
return (bool) (self::$classes[ltrim($name, '\\')] ?? interface_exists($name, $autoload));
38+
return (bool) (self::$classes[ltrim($name, '\\')] ?? \interface_exists($name, $autoload));
3939
}
4040

4141
public static function trait_exists($name, $autoload = true)
4242
{
43-
return (bool) (self::$classes[ltrim($name, '\\')] ?? trait_exists($name, $autoload));
43+
return (bool) (self::$classes[ltrim($name, '\\')] ?? \trait_exists($name, $autoload));
4444
}
4545

4646
public static function register($class)

0 commit comments

Comments
 (0)