Skip to content

Commit 05a9e40

Browse files
author
diabl0
committed
Removed \JsonSerializable from Document due to PR #206
1 parent dadd6f3 commit 05a9e40

File tree

1 file changed

+1
-12
lines changed

1 file changed

+1
-12
lines changed

lib/ArangoDBClient/Document.php

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
* @package ArangoDBClient
2020
* @since 0.2
2121
*/
22-
class Document implements
22+
class Document
2323
{
2424
/**
2525
* The document id (might be NULL for new documents)
@@ -772,17 +772,6 @@ public function getRevision()
772772
return $this->_rev;
773773
}
774774

775-
/**
776-
* Specify data which should be serialized to JSON
777-
* @link http://php.net/manual/en/jsonserializable.jsonserialize.php
778-
* @return mixed data which can be serialized by <b>json_encode</b>,
779-
* which is a value of any type other than a resource.
780-
* @since 5.4.0
781-
*/
782-
function jsonSerialize()
783-
{
784-
return $this->getAll();
785-
}
786775
}
787776

788777
class_alias(Document::class, '\triagens\ArangoDb\Document');

0 commit comments

Comments
 (0)