Skip to content

Commit

Permalink
fix(symfony): set normalization context in request attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
soyuka committed May 2, 2024
1 parent f63fd81 commit 46c8646
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/State/Provider/ReadProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ public function provide(Operation $operation, array $uriVariables = [], array $c
'resource_class' => $operation->getClass(),
'operation' => $operation,
]);
$request?->attributes->set('_api_normalization_context', $context);

Check failure on line 78 in src/State/Provider/ReadProvider.php

View workflow job for this annotation

GitHub Actions / PHPStan (PHP 8.3)

Using nullsafe property access on non-nullable type mixed. Use -> instead.
}

try {
Expand Down

0 comments on commit 46c8646

Please sign in to comment.