Skip to content

Commit f91cb36

Browse files
authored
Print more usefull error msg when no strategy matches
1 parent 04ac843 commit f91cb36

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/phpDocumentor/Reflection/Php/ProjectFactoryStrategies.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ public function findMatching($object)
5555
throw new OutOfBoundsException(
5656
sprintf(
5757
'No matching factory found for %s',
58-
is_object($object) ? get_class($object) : gettype($object)
58+
is_object($object) ? get_class($object) : print_r($object, true)
5959
)
6060
);
6161
}

0 commit comments

Comments
 (0)