Skip to content

Commit

Permalink
Make closure static
Browse files Browse the repository at this point in the history
To adhere to our coding standard.
  • Loading branch information
lcobucci committed Aug 13, 2019
1 parent a081460 commit fc2819e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Doctrine/ORM/Cache/DefaultQueryCache.php
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ public function get(QueryCacheKey $key, ResultSetMapping $rsm, array $hints = []

$cm = $this->em->getClassMetadata($entityName);

$generateKeys = function (array $entry) use ($cm): EntityCacheKey {
$generateKeys = static function (array $entry) use ($cm) : EntityCacheKey {
return new EntityCacheKey($cm->rootEntityName, $entry['identifier']);
};

Expand Down

0 comments on commit fc2819e

Please sign in to comment.