Currently passing in an accept header equals */* does not work. It tells that there's no match and EncodingNegotiator::getBest() returns null instead it should return the highest prioritized available content type.
$negotiator = new EncodingNegotiator();
$mediaType = $negotiator->getBest('*/*', ['application/json']);
var_dump($mediaType); // -> null, but should be 'application/json'
Currently passing in an accept header equals
*/*
does not work. It tells that there's no match andEncodingNegotiator::getBest()
returnsnull
instead it should return the highest prioritized available content type.