Skip to content
Permalink
Browse files

ID#323: introduced type declaration for various classes.

  • Loading branch information...
Christian Achatz
Christian Achatz committed May 18, 2018
1 parent 0941ceb commit 7b9dbb8c4f5072d0d74d3f5fa62aded91ee59184
Showing with 2 additions and 2 deletions.
  1. +1 −1 tools/cache/key/AdvancedCacheKey.php
  2. +1 −1 tools/cache/key/SimpleCacheKey.php
@@ -45,7 +45,7 @@ class AdvancedCacheKey extends SimpleCacheKey {
* @version
* Version 0.1, 06.08.2010<br />
*/
public function __construct($cacheKey, $cacheSubKey, $ttl = null) {
public function __construct(string $cacheKey = null, string $cacheSubKey = null, $ttl = null) {
parent::__construct($cacheKey, $ttl);
$this->subKey = $cacheSubKey;
}
@@ -34,7 +34,7 @@ class SimpleCacheKey implements CacheKey {
private $cacheKey;
private $ttl;
public function __construct($cacheKey, $ttl = null) {
public function __construct(string $cacheKey = null, $ttl = null) {
$this->cacheKey = $cacheKey;
$this->ttl = $ttl;
}

0 comments on commit 7b9dbb8

Please sign in to comment.
You can’t perform that action at this time.