From 039fe1267c3a9a2afa1ac361b37c1aaadb6f5a3b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?SIGUI=20Kess=C3=A9=20Emmanuel?= Date: Thu, 22 Jun 2023 16:47:37 +0100 Subject: [PATCH] :adhesive_bandage: Fix: code format and lint --- src/Support/Callback.php | 10 +++++----- src/Support/Container.php | 4 ++-- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/Support/Callback.php b/src/Support/Callback.php index 4029bf0..40a1f5c 100644 --- a/src/Support/Callback.php +++ b/src/Support/Callback.php @@ -8,7 +8,7 @@ final class Callback { /** - * @var array|callable-string|callable-object|callable(mixed ...$args): mixed + * @var array|array{object|class-string,string}|callable-string|callable-object|callable(mixed ...$args): mixed */ private mixed $value; @@ -20,7 +20,7 @@ final class Callback private $function; /** - * @param array|callable-string|callable-object|callable(mixed ...$args): mixed $value + * @param array|array{object|class-string,string}|callable-string|callable-object|callable(mixed ...$args): mixed $value */ public function __construct(array|string|object|callable $value) { @@ -28,7 +28,7 @@ public function __construct(array|string|object|callable $value) } /** - * @param array|callable-string|callable-object|callable(mixed ...$args): mixed $value + * @param array|array{object|class-string,string}|callable-string|callable-object|callable(mixed ...$args): mixed $value */ public static function from(array|string|object|callable $value): self { @@ -36,7 +36,7 @@ public static function from(array|string|object|callable $value): self } /** - * @param array|callable-string|callable-object|callable(mixed ...$args): mixed $value + * @param array|array{object|class-string,string}|callable-string|callable-object|callable(mixed ...$args): mixed $value */ public function setValue(array|string|object|callable $value): static { @@ -74,7 +74,7 @@ public function setValue(array|string|object|callable $value): static } /** - * @return array|callable-string|callable-object|callable(mixed ...$args): mixed + * @return array|array{object|class-string,string}|callable-string|callable-object|callable(mixed ...$args): mixed */ public function getValue(): array|string|object|callable { diff --git a/src/Support/Container.php b/src/Support/Container.php index be2d116..2823e1c 100644 --- a/src/Support/Container.php +++ b/src/Support/Container.php @@ -190,7 +190,7 @@ public function instanciateArgs(object|string $object_or_class, array $args = [] } /** - * @param array|callable-string|callable-object|callable(mixed ...$args): mixed $callback + * @param array|array{object|class-string,string}|callable-string|callable-object|callable(mixed ...$args): mixed $callback */ public function invoke(array|string|object|callable $callback, mixed ...$arguments): mixed { @@ -198,7 +198,7 @@ public function invoke(array|string|object|callable $callback, mixed ...$argumen } /** - * @param array|callable-string|callable-object|callable(mixed ...$args): mixed $callback + * @param array|array{object|class-string,string}|callable-string|callable-object|callable(mixed ...$args): mixed $callback * @param mixed[] $args */ public function invokeArgs(array|string|object|callable $callback, array $args = []): mixed