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:
parent
2ec76f01c2
commit
8855b6c1d9
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user