Deleting return-types of methods
This commit is contained in:
parent
3f7e4f5bb6
commit
4b7be15560
|
@ -20,7 +20,7 @@ class CacheDriverFactory
|
||||||
* @return ICacheDriver The instance of the CacheDriver
|
* @return ICacheDriver The instance of the CacheDriver
|
||||||
* @throws \Exception The exception if something went wrong during the CacheDriver creation
|
* @throws \Exception The exception if something went wrong during the CacheDriver creation
|
||||||
*/
|
*/
|
||||||
public static function create(string $driver) : ICacheDriver {
|
public static function create(string $driver) {
|
||||||
|
|
||||||
switch ($driver) {
|
switch ($driver) {
|
||||||
case 'memcache':
|
case 'memcache':
|
||||||
|
|
|
@ -22,7 +22,7 @@ abstract class AbstractLockDriver implements ILockDriver
|
||||||
* @param string key The Name of the lock
|
* @param string key The Name of the lock
|
||||||
* @return bool Returns true if the lock is set
|
* @return bool Returns true if the lock is set
|
||||||
*/
|
*/
|
||||||
protected function hasAcquiredLock(string $key): bool {
|
protected function hasAcquiredLock(string $key) {
|
||||||
return isset($this->acquireLock[$key]);
|
return isset($this->acquireLock[$key]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -18,7 +18,7 @@ class SemaphoreLockDriver extends AbstractLockDriver
|
||||||
*
|
*
|
||||||
* @return integer the semaphore key
|
* @return integer the semaphore key
|
||||||
*/
|
*/
|
||||||
private static function semaphoreKey(string $key): int
|
private static function semaphoreKey(string $key)
|
||||||
{
|
{
|
||||||
$temp = get_temppath();
|
$temp = get_temppath();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue