From 3701ce0dadf030da400cbad7373a04368530cdc1 Mon Sep 17 00:00:00 2001 From: Fran Moreno Date: Thu, 28 Apr 2022 11:33:07 +0200 Subject: [PATCH] Add PHPDoc return types --- lib/StripeObject.php | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/lib/StripeObject.php b/lib/StripeObject.php index 8e9eb93c11..bc5d3981bb 100644 --- a/lib/StripeObject.php +++ b/lib/StripeObject.php @@ -194,24 +194,37 @@ public function __debugInfo() } // ArrayAccess methods + + /** + * @return void + */ #[\ReturnTypeWillChange] public function offsetSet($k, $v) { $this->{$k} = $v; } + /** + * @return bool + */ #[\ReturnTypeWillChange] public function offsetExists($k) { return \array_key_exists($k, $this->_values); } + /** + * @return void + */ #[\ReturnTypeWillChange] public function offsetUnset($k) { unset($this->{$k}); } + /** + * @return mixed + */ #[\ReturnTypeWillChange] public function offsetGet($k) {