Skip to content

Commit fbcecb3

Browse files
committed
Merge remote-tracking branch 'upstream/develop' into 4.4
2 parents df5973b + ef387aa commit fbcecb3

File tree

2 files changed

+3
-7
lines changed

2 files changed

+3
-7
lines changed

.php-cs-fixer.user-guide.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
];
3838

3939
$options = [
40-
'cacheFile' => 'build/.php-cs-fixer.no-header.cache',
40+
'cacheFile' => 'build/.php-cs-fixer.user-guide.cache',
4141
'finder' => $finder,
4242
];
4343

system/Common.php

+2-6
Original file line numberDiff line numberDiff line change
@@ -1008,10 +1008,8 @@ function session(?string $val = null)
10081008
* - $timer = \CodeIgniter\Config\Services::timer();
10091009
*
10101010
* @param array|bool|float|int|object|string|null ...$params
1011-
*
1012-
* @return object
10131011
*/
1014-
function service(string $name, ...$params)
1012+
function service(string $name, ...$params): ?object
10151013
{
10161014
return Services::$name(...$params);
10171015
}
@@ -1022,10 +1020,8 @@ function service(string $name, ...$params)
10221020
* Always returns a new instance of the class.
10231021
*
10241022
* @param array|bool|float|int|object|string|null ...$params
1025-
*
1026-
* @return object|null
10271023
*/
1028-
function single_service(string $name, ...$params)
1024+
function single_service(string $name, ...$params): ?object
10291025
{
10301026
$service = Services::serviceExists($name);
10311027

0 commit comments

Comments
 (0)