Fix return type

This commit is contained in:
Dennis Eichhorn 2017-03-21 11:12:08 +01:00
parent a03f6ee047
commit 754db8b6ca

View File

@ -112,10 +112,10 @@ class CachePool implements OptionsInterface
* @since 1.0.0
* @author Dennis Eichhorn <d.eichhorn@oms.com>
*/
public function get(string $key)
public function get(string $key) /* : ?CacheInterface */
{
if (!isset($this->pool[$key])) {
return false;
return null;
}
return $this->pool[$key];