Skip to content

Commit 3f426df

Browse files
committed
remove \DateTime check for very old PHP versions
1 parent b04e9f7 commit 3f426df

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

PhpAmqpLib/Wire/AMQPAbstractCollection.php

-3
Original file line numberDiff line numberDiff line change
@@ -241,9 +241,6 @@ protected function encodeValue($val)
241241
$val = $this->encodeVoid();
242242
} elseif ($val instanceof \DateTimeInterface) {
243243
$val = array(self::T_TIMESTAMP, $val->getTimestamp());
244-
} elseif ($val instanceof \DateTime) {
245-
// PHP <= 5.4 has no DateTimeInterface
246-
$val = array(self::T_TIMESTAMP, $val->getTimestamp());
247244
} elseif ($val instanceof AMQPDecimal) {
248245
$val = array(self::T_DECIMAL, $val);
249246
} elseif ($val instanceof self) {

0 commit comments

Comments
 (0)