diff --git a/mongodb/BSON/Document.php b/mongodb/BSON/Document.php index 37b3fe610..13a3ae0da 100644 --- a/mongodb/BSON/Document.php +++ b/mongodb/BSON/Document.php @@ -6,7 +6,7 @@ * @since 1.16.0 * @link https://secure.php.net/manual/en/class.mongodb-bson-document.php */ -final class Document implements \IteratorAggregate, \Serializable +final class Document implements \ArrayAccess, \IteratorAggregate, \Serializable { private function __construct() {} diff --git a/mongodb/BSON/PackedArray.php b/mongodb/BSON/PackedArray.php index 1cb83bfdb..fdafa883a 100644 --- a/mongodb/BSON/PackedArray.php +++ b/mongodb/BSON/PackedArray.php @@ -6,7 +6,7 @@ * @since 1.16.0 * @link https://secure.php.net/manual/en/class.mongodb-bson-packedarray.php */ -final class PackedArray implements \IteratorAggregate, \Serializable +final class PackedArray implements \ArrayAccess, \IteratorAggregate, \Serializable { private function __construct() {}