Skip to content

Commit

Permalink
@dunglas review fix
Browse files Browse the repository at this point in the history
Rebase
  • Loading branch information
jewome62 committed Apr 6, 2019
1 parent 0f7ab10 commit 82d8bb2
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -26,7 +26,7 @@ trait ObjectToPopulateTrait
*/
protected function extractObjectToPopulate($class, array $context, $key = null)
{
$key = $key ?: AbstractNormalizer::OBJECT_TO_POPULATE;
$key = $key ?? AbstractNormalizer::OBJECT_TO_POPULATE;

if (isset($context[$key]) && \is_object($context[$key]) && $context[$key] instanceof $class) {
return $context[$key];
Expand Down

0 comments on commit 82d8bb2

Please sign in to comment.