From 82dc7aeb578e16207fa27e117334e593f7520e7e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Tamarelle?= Date: Tue, 28 May 2024 13:05:43 +0200 Subject: [PATCH] MongoDB BSON classes implementing ArrayAccess --- mongodb/BSON/Document.php | 2 +- mongodb/BSON/PackedArray.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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() {}