1
0
mirror of https://github.com/danog/psalm.git synced 2024-11-30 04:39:00 +01:00

Fix Ds\Map methods (#3412)

This commit is contained in:
Jáchym Toušek 2020-05-20 13:27:25 +02:00 committed by GitHub
parent 2ec76f01c2
commit 8855b6c1d9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -195,7 +195,11 @@ final class Map implements Collection
* @template TDefault
* @param TKey $key
* @param TDefault $default
* @return TValue|TDefault
* @return (
* func_num_args() is 1
* ? TValue
* : TValue|TDefault
* )
* @throws OutOfBoundsException
*/
public function get($key, $default = null)
@ -254,7 +258,11 @@ final class Map implements Collection
* @template TDefault
* @param TKey $key
* @param TDefault $default
* @return TValue|TDefault
* @return (
* func_num_args() is 1
* ? TValue
* : TValue|TDefault
* )
* @throws \OutOfBoundsException
*/
public function remove($key, $default = null)