You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The main reason for this is to be able to indicate an invalid key. For example, Map::find(mixed $value): mixed $key would be ambiguous if either false or null indicates that a key could not be found. It doesn't make enough sense to have a null key, so we should just disallow it entirely and throw an exception when a null key is used.
The text was updated successfully, but these errors were encountered:
The main reason for this is to be able to indicate an invalid key. For example,
Map::find(mixed $value): mixed $key
would be ambiguous if eitherfalse
ornull
indicates that a key could not be found. It doesn't make enough sense to have a null key, so we should just disallow it entirely and throw an exception when a null key is used.The text was updated successfully, but these errors were encountered: