Skip to content

Commit

Permalink
Use arrow function in code example
Browse files Browse the repository at this point in the history
  • Loading branch information
emodric committed May 20, 2021
1 parent 295617c commit 058b43f
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions cookbook/custom_query_types.rst
Original file line number Diff line number Diff line change
Expand Up @@ -186,9 +186,7 @@ automatically converted to block items.
);
return array_map(
static function (SearchHit $searchHit) {
return $searchHit->valueObject;
},
static fn (SearchHit $searchHit) => $searchHit->valueObject,
$searchResult->searchHits,
);
}
Expand Down

0 comments on commit 058b43f

Please sign in to comment.