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

fix(doctrine): use null-safe operator when retrieving parameters #6422

Closed Kyzegs closed 2 weeks ago

Kyzegs commented 2 weeks ago
Q A
Branch? 3.4

The $operation argument is nullable, therefore we should always use the null-safe operator when trying to call the getParameters method. It may result in the following error otherwise:

Call to a member function getParameters() on null
soyuka commented 2 weeks ago

thanks rebased at https://github.com/api-platform/core/pull/6423