Skip to content

Commit

Permalink
Add return types for ArrayAccess in docblocks (open-telemetry#1319)
Browse files Browse the repository at this point in the history
  • Loading branch information
MetalArend authored Jun 5, 2024
1 parent 600d8a5 commit eebf23a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/SDK/Common/Attribute/AttributesBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ public function offsetExists($offset): bool

/**
* @phan-suppress PhanUndeclaredClassAttribute
* @return mixed
*/
#[\ReturnTypeWillChange]
public function offsetGet($offset)
Expand All @@ -58,6 +59,7 @@ public function offsetGet($offset)

/**
* @phan-suppress PhanUndeclaredClassAttribute
* @return void
*/
#[\ReturnTypeWillChange]
public function offsetSet($offset, $value)
Expand Down Expand Up @@ -90,6 +92,7 @@ public function offsetSet($offset, $value)

/**
* @phan-suppress PhanUndeclaredClassAttribute
* @return void
*/
#[\ReturnTypeWillChange]
public function offsetUnset($offset)
Expand Down

0 comments on commit eebf23a

Please sign in to comment.