Skip to content

Commit

Permalink
Merge pull request #97 from niden/master
Browse files Browse the repository at this point in the history
5.6.1
  • Loading branch information
niden authored Feb 8, 2024
2 parents 0593372 + fef7ea3 commit 59be72b
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
php-versions: ["7.4", "8.0", "8.1", "8.2"]

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Setup PHP, with composer and extensions
uses: shivammathur/setup-php@v2
Expand Down
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
4 changes: 2 additions & 2 deletions src/Filter/Validation.php
Original file line number Diff line number Diff line change
Expand Up @@ -265,9 +265,9 @@ public function setValidators(array $validators): Validation
*
* @param array|object $data
* @param object $entity
* @return Messages
* @return Messages|false
*/
public function validate($data = null, $entity = null): Messages
public function validate($data = null, $entity = null): Messages|bool
{
}

Expand Down
4 changes: 2 additions & 2 deletions src/Filter/Validation/ValidationInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ public function setLabels(array $labels): void;
*
* @param array|object $data
* @param object $entity
* @return Messages
* @return Messages|false
*/
public function validate($data = null, $entity = null): Messages;
public function validate($data = null, $entity = null): Messages|bool;
}

0 comments on commit 59be72b

Please sign in to comment.