]> git.mxchange.org Git - friendica.git/commitdiff
Deleting return-types of methods
authorPhilipp Holzer <admin@philipp.info>
Thu, 28 Jun 2018 21:02:00 +0000 (23:02 +0200)
committerPhilipp Holzer <admin@philipp.info>
Thu, 28 Jun 2018 21:02:00 +0000 (23:02 +0200)
src/Core/Cache/CacheDriverFactory.php
src/Core/Lock/AbstractLockDriver.php
src/Core/Lock/SemaphoreLockDriver.php

index d15b8e9858c446394993b0fc91bdcfaf5fadc17f..e9ff4331d74d6e22e0c686d306058b937d561fe1 100644 (file)
@@ -20,7 +20,7 @@ class CacheDriverFactory
         * @return ICacheDriver  The instance of the CacheDriver
         * @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) {
                        case 'memcache':
index 15820c3782b5b074e3bf83dbb1e8ede22ae44149..4c2bfaec9545ffe25715c3a7d635e1b633f57e57 100644 (file)
@@ -22,7 +22,7 @@ abstract class AbstractLockDriver implements ILockDriver
         * @param string key The Name of the lock
         * @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]);
        }
 
index 84965a16432ff1a34faae7084788e9b85cca4e45..4eb30b9d02f6ff74f784d45f3fd91b128cc4c2da 100644 (file)
@@ -18,7 +18,7 @@ class SemaphoreLockDriver extends AbstractLockDriver
         *
         * @return integer the semaphore key
         */
-       private static function semaphoreKey(string $key): int
+       private static function semaphoreKey(string $key)
        {
                $temp = get_temppath();