Skip to content

Commit 80001c2

Browse files
committed
Fixed DateTimeInterface comparaison
Fixed DateTimeInterface comparaison
1 parent 710fdc7 commit 80001c2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

DataCollector/Util/ValueExporter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ class ValueExporter
2828
public function exportValue($value, $depth = 1, $deep = false)
2929
{
3030
if (is_object($value)) {
31-
if ($value instanceof \DateTime || $value instanceof \DateTimeInterface) {
31+
if ($value instanceof \DateTimeInterface) {
3232
return sprintf('Object(%s) - %s', get_class($value), $value->format(\DateTime::ISO8601));
3333
}
3434

0 commit comments

Comments
 (0)