Skip to content

Commit e67dfa3

Browse files
Harrison IfeanyichukwuHarrison Ifeanyichukwu
Harrison Ifeanyichukwu
authored and
Harrison Ifeanyichukwu
committed
refactor: type hint method return types
1 parent c7480dc commit e67dfa3

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/Handler.php

+4-4
Original file line numberDiff line numberDiff line change
@@ -934,7 +934,7 @@ public function execute()
934934
*@return bool
935935
*@throws StateException - throws error if the execute method has not been called
936936
*/
937-
public function succeeds()
937+
public function succeeds(): bool
938938
{
939939
if (!$this->_executed)
940940
throw new StateException('Cant check state because execute method has not been called');
@@ -948,7 +948,7 @@ public function succeeds()
948948
*@return bool
949949
*@throws StateException - throws error if the execute method has not been called
950950
*/
951-
public function fails()
951+
public function fails(): bool
952952
{
953953
return !$this->succeeds();
954954
}
@@ -976,7 +976,7 @@ public function getError(string $key = null)
976976
*
977977
*@return array
978978
*/
979-
public function getErrors()
979+
public function getErrors(): array
980980
{
981981
return $this->_errors;
982982
}
@@ -1040,7 +1040,7 @@ public function __get(string $name)
10401040
*
10411041
*@return bool
10421042
*/
1043-
public function modelCamelizeFields(bool $status = null)
1043+
public function modelCamelizeFields(bool $status = null): bool
10441044
{
10451045
if (!is_null($status))
10461046
$this->_model_camelize_fields = $status;

0 commit comments

Comments
 (0)