Skip to content

Commit c86ccb4

Browse files
authored
fix grabRepository logic (#58)
1 parent 0db0214 commit c86ccb4

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/Codeception/Module/Symfony.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1290,14 +1290,14 @@ public function grabRepository($mixed)
12901290
return $repo;
12911291
};
12921292

1293-
if (interface_exists($mixed)) {
1294-
return $getRepo();
1295-
}
1296-
12971293
if (is_object($mixed)) {
12981294
$mixed = get_class($mixed);
12991295
}
13001296

1297+
if (interface_exists($mixed)) {
1298+
return $getRepo();
1299+
}
1300+
13011301
if (!is_string($mixed) || !class_exists($mixed) ) {
13021302
$isNotARepo();
13031303
return null;

0 commit comments

Comments
 (0)