Skip to content

Commit

Permalink
Merge pull request doctrine#7208 from someniatko/someniatko-patch-1
Browse files Browse the repository at this point in the history
Better PHPDoc for AbstractQuery cache methods
  • Loading branch information
Ocramius authored Apr 28, 2018
2 parents 46b695d + 1ed8bc7 commit 9019297
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions lib/Doctrine/ORM/AbstractQuery.php
Original file line number Diff line number Diff line change
Expand Up @@ -528,15 +528,15 @@ public function getResultCacheDriver()
* Set whether or not to cache the results of this query and if so, for
* how long and which ID to use for the cache entry.
*
* @param bool $bool
* @param int $lifetime
* @param string $resultCacheId
* @param bool $useCache Whether or not to cache the results of this query.
* @param int $lifetime How long the cache entry is valid, in seconds.
* @param string $resultCacheId ID to use for the cache entry.
*
* @return static This query instance.
*/
public function useResultCache($bool, $lifetime = null, $resultCacheId = null)
public function useResultCache($useCache, $lifetime = null, $resultCacheId = null)
{
if ($bool) {
if ($useCache) {
$this->setResultCacheLifetime($lifetime);
$this->setResultCacheId($resultCacheId);

Expand All @@ -551,7 +551,7 @@ public function useResultCache($bool, $lifetime = null, $resultCacheId = null)
/**
* Defines how long the result cache will be active before expire.
*
* @param int $lifetime How long the cache entry is valid.
* @param int $lifetime How long the cache entry is valid, in seconds.
*
* @return static This query instance.
*/
Expand Down

0 comments on commit 9019297

Please sign in to comment.