Skip to content

Commit

Permalink
5.6.1
Browse files Browse the repository at this point in the history
  • Loading branch information
niden committed Feb 8, 2024
1 parent 0593372 commit 5323b56
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 10 deletions.
5 changes: 3 additions & 2 deletions src/Cache/AbstractCache.php
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ protected function doDeleteMultiple($keys): bool
* @throws InvalidArgumentException MUST be thrown if the $key string is
* not a legal value.
*/
protected function doGet(string $key, $defaultValue = null)
protected function doGet(string $key, $defaultValue = null): mixed
{
}

Expand All @@ -123,8 +123,9 @@ protected function doGet(string $key, $defaultValue = null)
*
* @param mixed $keys
* @param mixed $defaultValue
* @return array
*/
protected function doGetMultiple($keys, $defaultValue = null)
protected function doGetMultiple($keys, $defaultValue = null): array
{
}

Expand Down
6 changes: 4 additions & 2 deletions src/Cli/Router.php
Original file line number Diff line number Diff line change
Expand Up @@ -227,17 +227,19 @@ public function handle($arguments = null)
* Sets the default action name
*
* @param string $actionName
* @return Router
*/
public function setDefaultAction(string $actionName)
public function setDefaultAction(string $actionName): Router
{
}

/**
* Sets the name of the default module
*
* @param string $moduleName
* @return Router
*/
public function setDefaultModule(string $moduleName)
public function setDefaultModule(string $moduleName): Router
{
}

Expand Down
6 changes: 3 additions & 3 deletions src/Filter/Validation.php
Original file line number Diff line number Diff line change
Expand Up @@ -264,10 +264,10 @@ public function setValidators(array $validators): Validation
* Validate a set of data according to a set of rules
*
* @param array|object $data
* @param object $entity
* @return Messages
* @param object $entity
* @return Messages|false
*/
public function validate($data = null, $entity = null): Messages
public function validate($data = null, $entity = null): Messages|bool
{
}

Expand Down
6 changes: 3 additions & 3 deletions src/Filter/Validation/ValidationInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -129,8 +129,8 @@ public function setLabels(array $labels): void;
* Validate a set of data according to a set of rules
*
* @param array|object $data
* @param object $entity
* @return Messages
* @param object $entity
* @return Messages|false
*/
public function validate($data = null, $entity = null): Messages;
public function validate($data = null, $entity = null): Messages|bool;
}

0 comments on commit 5323b56

Please sign in to comment.