fix code cleanup mistakes
This commit is contained in:
@@ -21,7 +21,7 @@ class Delete extends Query {
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function execute() {
|
||||
public function execute(): bool {
|
||||
return $this->sql->executeDelete($this);
|
||||
}
|
||||
|
||||
|
||||
@@ -19,6 +19,7 @@ abstract class Query {
|
||||
return $this;
|
||||
}
|
||||
|
||||
public abstract function execute(): bool;
|
||||
// can actually return bool|array (depending on success and query type)
|
||||
public abstract function execute();
|
||||
|
||||
}
|
||||
@@ -80,7 +80,7 @@ class Select extends Query {
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function execute(): bool {
|
||||
public function execute() {
|
||||
return $this->sql->executeSelect($this);
|
||||
}
|
||||
|
||||
|
||||
@@ -28,7 +28,7 @@ class Update extends Query {
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function execute(): bool {
|
||||
public function execute() {
|
||||
return $this->sql->executeUpdate($this);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user