Skip to content

Commit

Permalink
fix(doctrine): use null-safe operator when retrieving parameters (#6423)
Browse files Browse the repository at this point in the history
Co-authored-by: Sebastiaan <45851377+Kyzegs@users.noreply.github.com>
  • Loading branch information
soyuka and Kyzegs authored Jun 13, 2024
1 parent 2ac8f0e commit ff53356
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Doctrine/Orm/Extension/ParameterExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public function __construct(private readonly ContainerInterface $filterLocator)
*/
private function applyFilter(QueryBuilder $queryBuilder, QueryNameGeneratorInterface $queryNameGenerator, string $resourceClass, ?Operation $operation = null, array $context = []): void
{
foreach ($operation->getParameters() ?? [] as $parameter) {
foreach ($operation?->getParameters() ?? [] as $parameter) {
$values = $parameter->getExtraProperties()['_api_values'] ?? [];
if (!$values) {
continue;
Expand Down

0 comments on commit ff53356

Please sign in to comment.