File tree Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -1004,10 +1004,8 @@ function session(?string $val = null)
1004
1004
* - $timer = \CodeIgniter\Config\Services::timer();
1005
1005
*
1006
1006
* @param array|bool|float|int|object|string|null ...$params
1007
- *
1008
- * @return object
1009
1007
*/
1010
- function service (string $ name , ...$ params )
1008
+ function service (string $ name , ...$ params ): ? object
1011
1009
{
1012
1010
return Services::$ name (...$ params );
1013
1011
}
@@ -1018,10 +1016,8 @@ function service(string $name, ...$params)
1018
1016
* Always returns a new instance of the class.
1019
1017
*
1020
1018
* @param array|bool|float|int|object|string|null ...$params
1021
- *
1022
- * @return object|null
1023
1019
*/
1024
- function single_service (string $ name , ...$ params )
1020
+ function single_service (string $ name , ...$ params ): ? object
1025
1021
{
1026
1022
$ service = Services::serviceExists ($ name );
1027
1023
You can’t perform that action at this time.
0 commit comments