api-platform / core

The server component of API Platform: hypermedia and GraphQL APIs in minutes
https://api-platform.com
MIT License
2.38k stars 846 forks source link

Handle null request in ReadProvider #6404

Closed guillaume-sainthillier closed 3 weeks ago

guillaume-sainthillier commented 4 weeks ago

API Platform version(s) affected: 3.2

Description
When no request is passed in request and operation allow read, ReadProvider throw an Error.

How to reproduce
Pass and empty $context to ReadProvider

Possible Solution

6403

Additional Context

soyuka commented 3 weeks ago

note that I moved the test on 3.4 to add it to the existing test