Deleting parameter-types of methods (lack of support in PHP 5.6)

This commit is contained in:
Philipp Holzer 2018-06-28 23:06:14 +02:00
commit ad5ee75159
No known key found for this signature in database
GPG key ID: 58160D7D6AF942B6
6 changed files with 13 additions and 13 deletions

View file

@ -18,7 +18,7 @@ class DatabaseLockDriver extends AbstractLockDriver
*
* @return boolean Was the lock successful?
*/
public function acquireLock(string $key, int $timeout = 120)
public function acquireLock($key, $timeout = 120)
{
$got_lock = false;
$start = time();
@ -66,7 +66,7 @@ class DatabaseLockDriver extends AbstractLockDriver
*
* @return mixed
*/
public function releaseLock(string $key)
public function releaseLock($key)
{
dba::delete('locks', ['locked' => false, 'pid' => 0], ['name' => $key, 'pid' => getmypid()]);