From 6cd937786610caf69e9b3679e4a2f60111722c95 Mon Sep 17 00:00:00 2001 From: xl Date: Fri, 10 Nov 2023 14:01:37 +0800 Subject: [PATCH] eee --- function.php | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/function.php b/function.php index 552351e9..2475f369 100644 --- a/function.php +++ b/function.php @@ -17,6 +17,18 @@ use Psr\Http\Message\RequestInterface; use Psr\Http\Message\ResponseInterface; use Swoole\Process; +interface Arrayable +{ + + + /** + * @return array + */ + public function toArray(): array; + +} + + if (!function_exists('make')) { @@ -272,7 +284,7 @@ if (!function_exists('inject')) { function inject(object $object): object { $container = Kiri::getDi(); - $reflect = $container->getReflectionClass($object::class); + $reflect = $container->getReflectionClass($object::class); $container->resolveProperties($reflect, $object); return $object; }