Implement ArrayAccess interface for Vector and HashMap
commit33e61d2c5083c05eae635b1c610ca44a27f5e29c
authorSébastien Santoro <dereckson@espace-win.org>
Thu, 10 Feb 2022 23:20:51 +0000 (11 00:20 +0100)
committerSébastien Santoro <dereckson@espace-win.org>
Thu, 10 Feb 2022 23:37:09 +0000 (11 00:37 +0100)
treec55a76f744c4ddfdf16c5d8f983123b272c3b122
parentc7b5209e8276e03775ba436e06534bdda5204646
Implement ArrayAccess interface for Vector and HashMap

Summary:
Zed exposes the configuration as a hashmap to the site health checks:
`private HashMap $config`.

A check need the name of the database. ArrayAccess can allow this syntax:
`$this->config['database']['database']`

Ref T1678.

Test Plan: Unit tests provided.

Reviewers: dereckson

Reviewed By: dereckson

Maniphest Tasks: T1678

Differential Revision: https://devcentral.nasqueron.org/D2509
src/Collections/BaseCollection.php
src/Collections/BaseMap.php
src/Collections/HashMap.php
src/Collections/Vector.php
tests/Collections/HashMapTest.php
tests/Collections/VectorTest.php