Skip to content

Commit 59be72b

Browse files
authored
Merge pull request #97 from niden/master
5.6.1
2 parents 0593372 + fef7ea3 commit 59be72b

File tree

5 files changed

+12
-9
lines changed

5 files changed

+12
-9
lines changed

.github/workflows/main.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
php-versions: ["7.4", "8.0", "8.1", "8.2"]
1414

1515
steps:
16-
- uses: actions/checkout@v3
16+
- uses: actions/checkout@v4
1717

1818
- name: Setup PHP, with composer and extensions
1919
uses: shivammathur/setup-php@v2

src/Cache/AbstractCache.php

+3-2
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ protected function doDeleteMultiple($keys): bool
114114
* @throws InvalidArgumentException MUST be thrown if the $key string is
115115
* not a legal value.
116116
*/
117-
protected function doGet(string $key, $defaultValue = null)
117+
protected function doGet(string $key, $defaultValue = null): mixed
118118
{
119119
}
120120

@@ -123,8 +123,9 @@ protected function doGet(string $key, $defaultValue = null)
123123
*
124124
* @param mixed $keys
125125
* @param mixed $defaultValue
126+
* @return array
126127
*/
127-
protected function doGetMultiple($keys, $defaultValue = null)
128+
protected function doGetMultiple($keys, $defaultValue = null): array
128129
{
129130
}
130131

src/Cli/Router.php

+4-2
Original file line numberDiff line numberDiff line change
@@ -227,17 +227,19 @@ public function handle($arguments = null)
227227
* Sets the default action name
228228
*
229229
* @param string $actionName
230+
* @return Router
230231
*/
231-
public function setDefaultAction(string $actionName)
232+
public function setDefaultAction(string $actionName): Router
232233
{
233234
}
234235

235236
/**
236237
* Sets the name of the default module
237238
*
238239
* @param string $moduleName
240+
* @return Router
239241
*/
240-
public function setDefaultModule(string $moduleName)
242+
public function setDefaultModule(string $moduleName): Router
241243
{
242244
}
243245

src/Filter/Validation.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -265,9 +265,9 @@ public function setValidators(array $validators): Validation
265265
*
266266
* @param array|object $data
267267
* @param object $entity
268-
* @return Messages
268+
* @return Messages|false
269269
*/
270-
public function validate($data = null, $entity = null): Messages
270+
public function validate($data = null, $entity = null): Messages|bool
271271
{
272272
}
273273

src/Filter/Validation/ValidationInterface.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ public function setLabels(array $labels): void;
130130
*
131131
* @param array|object $data
132132
* @param object $entity
133-
* @return Messages
133+
* @return Messages|false
134134
*/
135-
public function validate($data = null, $entity = null): Messages;
135+
public function validate($data = null, $entity = null): Messages|bool;
136136
}

0 commit comments

Comments
 (0)