mirror of
https://github.com/PrivateBin/PrivateBin.git
synced 2025-10-03 01:39:15 +02:00
revert scalar type hints to retain support for PHP < 7.0
This commit is contained in:
parent
0f42bd818f
commit
632d70412a
4 changed files with 28 additions and 27 deletions
|
@ -72,7 +72,7 @@ abstract class AbstractData
|
|||
* @param array $paste
|
||||
* @return bool
|
||||
*/
|
||||
abstract public function create(string $pasteid, array $paste);
|
||||
abstract public function create($pasteid, array $paste);
|
||||
|
||||
/**
|
||||
* Read a paste.
|
||||
|
@ -81,7 +81,7 @@ abstract class AbstractData
|
|||
* @param string $pasteid
|
||||
* @return stdClass|false
|
||||
*/
|
||||
abstract public function read(string $pasteid);
|
||||
abstract public function read($pasteid);
|
||||
|
||||
/**
|
||||
* Delete a paste and its discussion.
|
||||
|
@ -89,7 +89,7 @@ abstract class AbstractData
|
|||
* @access public
|
||||
* @param string $pasteid
|
||||
*/
|
||||
abstract public function delete(string $pasteid);
|
||||
abstract public function delete($pasteid);
|
||||
|
||||
/**
|
||||
* Test if a paste exists.
|
||||
|
@ -98,7 +98,7 @@ abstract class AbstractData
|
|||
* @param string $pasteid
|
||||
* @return bool
|
||||
*/
|
||||
abstract public function exists(string $pasteid);
|
||||
abstract public function exists($pasteid);
|
||||
|
||||
/**
|
||||
* Create a comment in a paste.
|
||||
|
@ -110,7 +110,7 @@ abstract class AbstractData
|
|||
* @param array $comment
|
||||
* @return bool
|
||||
*/
|
||||
abstract public function createComment(string $pasteid, string $parentid, string $commentid, array $comment);
|
||||
abstract public function createComment($pasteid, $parentid, $commentid, array $comment);
|
||||
|
||||
/**
|
||||
* Read all comments of paste.
|
||||
|
@ -119,7 +119,7 @@ abstract class AbstractData
|
|||
* @param string $pasteid
|
||||
* @return array
|
||||
*/
|
||||
abstract public function readComments(string $pasteid);
|
||||
abstract public function readComments($pasteid);
|
||||
|
||||
/**
|
||||
* Test if a comment exists.
|
||||
|
@ -130,7 +130,7 @@ abstract class AbstractData
|
|||
* @param string $commentid
|
||||
* @return bool
|
||||
*/
|
||||
abstract public function existsComment(string $pasteid, string $parentid, string $commentid);
|
||||
abstract public function existsComment($pasteid, $parentid, $commentid);
|
||||
|
||||
/**
|
||||
* Returns up to batch size number of paste ids that have expired
|
||||
|
@ -139,7 +139,7 @@ abstract class AbstractData
|
|||
* @param int $batchsize
|
||||
* @return array
|
||||
*/
|
||||
abstract protected function _getExpiredPastes(int $batchsize);
|
||||
abstract protected function _getExpiredPastes($batchsize);
|
||||
|
||||
/**
|
||||
* Perform a purge of old pastes, at most the given batchsize is deleted.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue