the phpdocs should be updated to accept KeyValueContainer too