Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

5.6.1 #97

Merged
merged 3 commits into from
Feb 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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;
}
Loading