mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-08 11:11:39 +09:00
Clarify return types of DBStmtHelper
This commit is contained in:
parent
0da9244e33
commit
b9068c56f7
1 changed files with 6 additions and 3 deletions
|
|
@ -22,8 +22,11 @@ class DBStmtHelper extends \PDOStatement
|
|||
|
||||
/**
|
||||
* Set the database type.
|
||||
*
|
||||
* @param string $type
|
||||
* @return void
|
||||
*/
|
||||
public function setType(string $type)
|
||||
public function setType(string $type): void
|
||||
{
|
||||
$this->_type = $type;
|
||||
}
|
||||
|
|
@ -31,10 +34,10 @@ class DBStmtHelper extends \PDOStatement
|
|||
/**
|
||||
* Execute a prepared statement.
|
||||
*
|
||||
* @param array $params
|
||||
* @param ?array $params
|
||||
* @return bool
|
||||
*/
|
||||
public function execute($params = null): bool
|
||||
public function execute(?array $params = null): bool
|
||||
{
|
||||
$start_time = microtime(true);
|
||||
$db_class = DB::getInstance($this->_type);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue