1
0
mirror of https://github.com/danog/psalm.git synced 2025-01-21 21:31:13 +01:00

Allow ArrayAccess::offsetGet to return null

This commit is contained in:
Brown 2019-02-04 17:27:08 -05:00
parent bbf013bfb8
commit 27428b8743

View File

@ -162,7 +162,8 @@ interface ArrayAccess {
* @param TKey $offset <p>
* The offset to retrieve.
* </p>
* @return TValue Can return all value types.
* @return TValue|null Can return all value types.
* @psalm-ignore-nullable-return
* @since 5.0.0
*/
public function offsetGet($offset);