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:
parent
6ab7ca0853
commit
cade1ade9f
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user