summaryrefslogtreecommitdiff
path: root/app/Statement.php
diff options
context:
space:
mode:
authorRico Sonntag <mail@ricosonntag.de>2018-08-27 20:04:49 +0200
committerGreg Roach <fisharebest@gmail.com>2018-08-27 19:04:49 +0100
commit8f53f488f13e53e44dc48778e8f51ec9f91352dd (patch)
tree7c8de419d3b2381f073453ccf601f85bf25b5177 /app/Statement.php
parent12c79f746ea1903d66aea1fe0412eda6149a5532 (diff)
downloadwebtrees-8f53f488f13e53e44dc48778e8f51ec9f91352dd.tar.gz
webtrees-8f53f488f13e53e44dc48778e8f51ec9f91352dd.tar.bz2
webtrees-8f53f488f13e53e44dc48778e8f51ec9f91352dd.zip
Added PHP7 return types to methods according doc block (#1864)
Diffstat (limited to 'app/Statement.php')
-rw-r--r--app/Statement.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/app/Statement.php b/app/Statement.php
index cda41f0b62..1ded878454 100644
--- a/app/Statement.php
+++ b/app/Statement.php
@@ -49,7 +49,7 @@ class Statement
*
* @return Statement
*/
- public function execute($bind_variables = [])
+ public function execute($bind_variables = []): Statement
{
if ($this->executed) {
throw new \Exception('Statement::execute() called twice.');
@@ -123,7 +123,7 @@ class Statement
*
* @return stdClass[]
*/
- public function fetchAll()
+ public function fetchAll(): array
{
if (!$this->executed) {
$this->execute();
@@ -180,7 +180,7 @@ class Statement
*
* @return string[]
*/
- public function fetchAssoc()
+ public function fetchAssoc(): array
{
if (!$this->executed) {
$this->execute();
@@ -202,7 +202,7 @@ class Statement
*
* @return string[]
*/
- public function fetchOneColumn()
+ public function fetchOneColumn(): array
{
if (!$this->executed) {
$this->execute();
@@ -222,7 +222,7 @@ class Statement
*
* @return int
*/
- public function rowCount()
+ public function rowCount(): int
{
return $this->pdo_statement->rowCount();
}