i would assume $key is of type string? can $value be anything or only string? if it can be anything, please specify the type `mixed`.