Skip to content

Commit

Permalink
refactor: type hint method return types
Browse files Browse the repository at this point in the history
  • Loading branch information
teclone committed Oct 22, 2018
1 parent c7480dc commit e67dfa3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Handler.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand All @@ -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();
}
Expand Down Expand Up @@ -976,7 +976,7 @@ public function getError(string $key = null)
*
*@return array
*/
public function getErrors()
public function getErrors(): array
{
return $this->_errors;
}
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit e67dfa3

Please sign in to comment.