Skip to content

Commit 3659ab8

Browse files
authored
Merge pull request #119 from staabm/patch-1
Print more usefull error msg when no strategy matches
2 parents 04ac843 + f91cb36 commit 3659ab8

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)