1
0
mirror of https://github.com/fzaninotto/Faker.git synced 2025-03-22 00:09:59 +01:00

Documentor now has better output for non-strings

This commit is contained in:
Francois Zaninotto 2011-10-17 14:18:14 +02:00
parent 6ab7ca0853
commit cade1ade9f

View File

@ -37,7 +37,7 @@ class Documentor
$example = "array('". join("', '", $example) . "')";
} elseif($example instanceof \DateTime) {
$example = "DateTime('" . $example->format('Y-m-d H:i:s') . "')";
} elseif (is_string($example)) {
} else {
$example = var_export($example, true);
}
$formatters[$providerClass][$methodName . $parameters] = $example;