Skip to content

Commit

Permalink
Merge pull request #686 from gszy/cache-options-instance
Browse files Browse the repository at this point in the history
The Options\Cache::instance property can be null
  • Loading branch information
TomHAnderson authored Feb 19, 2020
2 parents a213749 + f29b2fb commit 570a915
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/DoctrineModule/Options/Cache.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ class Cache extends AbstractOptions
* Key to use for fetching the memcache, memcached, or redis instance from
* the service locator. Used only with Memcache. Memcached, and Redis.
*
* @var string
* @var null|string
*/
protected $instance = null;

Expand All @@ -61,9 +61,9 @@ public function setInstance(string $instance) : self
return $this;
}

public function getInstance() : string
public function getInstance() : ?string
{
return (string) $this->instance;
return $this->instance;
}

public function setNamespace(string $namespace) : self
Expand Down

0 comments on commit 570a915

Please sign in to comment.