diff --git a/src/Handler.php b/src/Handler.php index f38a2bc..809bbb4 100644 --- a/src/Handler.php +++ b/src/Handler.php @@ -934,7 +934,7 @@ public function execute() *@return bool *@throws StateException - throws error if the execute method has not been called */ - public function succeeds() + public function succeeds(): bool { if (!$this->_executed) throw new StateException('Cant check state because execute method has not been called'); @@ -948,7 +948,7 @@ public function succeeds() *@return bool *@throws StateException - throws error if the execute method has not been called */ - public function fails() + public function fails(): bool { return !$this->succeeds(); } @@ -976,7 +976,7 @@ public function getError(string $key = null) * *@return array */ - public function getErrors() + public function getErrors(): array { return $this->_errors; } @@ -1040,7 +1040,7 @@ public function __get(string $name) * *@return bool */ - public function modelCamelizeFields(bool $status = null) + public function modelCamelizeFields(bool $status = null): bool { if (!is_null($status)) $this->_model_camelize_fields = $status;