mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-07-08 01:15:37 +08:00
feat: enhance type hints and improve verbosity handling in commands (#1186)
This commit is contained in:
@@ -79,11 +79,11 @@ class ApplicationContext
|
||||
/**
|
||||
* Get a service from the container.
|
||||
*
|
||||
* @template T
|
||||
* @template T of object
|
||||
*
|
||||
* @param class-string<T> $id Service identifier
|
||||
* @param class-string<T>|string $id Service identifier
|
||||
*
|
||||
* @return null|T
|
||||
* @return ($id is class-string<T> ? T : mixed)
|
||||
*/
|
||||
public static function get(string $id): mixed
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user