From 072ce7a6977eac8e1b60b0331da607d9502d454c Mon Sep 17 00:00:00 2001 From: Deeka Wong <8337659+huangdijia@users.noreply.github.com> Date: Thu, 24 Oct 2024 13:25:58 +0800 Subject: [PATCH] Optimized phpdoc for @deprecated --- src/Functions.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Functions.php b/src/Functions.php index 2cf3e1f..79b05ae 100644 --- a/src/Functions.php +++ b/src/Functions.php @@ -224,7 +224,7 @@ function dispatch($job, ...$arguments) $job instanceof ProduceMessage => di(ProducerManager::class) ->getProducer((string) ($arguments[0] ?? 'default')) ->sendBatch([$job]), - class_exists(AsyncTask::class) && interface_exists(AsyncTaskInterface::class) && $job instanceof AsyncTaskInterface => AsyncTask::deliver($job, ...$arguments), // Will removed at v3.2 + class_exists(AsyncTask::class) && interface_exists(AsyncTaskInterface::class) && $job instanceof AsyncTaskInterface => AsyncTask::deliver($job, ...$arguments), // @deprecated since v3.1, will be removed in v3.2 default => throw new InvalidArgumentException('Not Support job type.') }; } @@ -359,7 +359,7 @@ function logs(string $name = 'hyperf', string $group = 'default'): LoggerInterfa * * @param DateTimeZone|string|null $tz * - * @deprecated since 3.1, use Hyperf\Support\now() instead, will removed at 3.2 + * @deprecated since v3.1, use Hyperf\Support\now() instead, will be removed in v3.2 */ function now($tz = null): Carbon { @@ -506,7 +506,7 @@ function session($key = null, $default = null) * * @param DateTimeZone|string|null $tz * - * @deprecated since 3.1, use Hyperf\Support\today() instead, will removed at 3.2 + * @deprecated since v3.1, use Hyperf\Support\today() instead, will be removed in v3.2 */ function today($tz = null): Carbon {