@@ -45,7 +45,7 @@ class Logger implements LoggerInterface
4545 /**
4646 * Constructs the PSR-3 Logger.
4747 *
48- * @param iterable $backends
48+ * @param iterable<mixed> $backends
4949 */
5050 public function __construct (iterable $ backends )
5151 {
@@ -61,7 +61,7 @@ public function __construct(iterable $backends)
6161 /**
6262 * @param mixed $level
6363 * @param string|\Stringable $message
64- * @param array $context
64+ * @param array<string,mixed> $context
6565 * @api
6666 */
6767 public function log ($ level , string |\Stringable $ message , array $ context = []): void
@@ -80,8 +80,8 @@ public function log($level, string|\Stringable $message, array $context = []): v
8080 }
8181
8282 /**
83- * @param array $context
84- * @return array list of packageKey, className and methodName either string or null
83+ * @param array<string,mixed> $context
84+ * @return array<int,string|null> list of packageKey, className and methodName either string or null
8585 */
8686 protected function extractLegacyDataFromContext (array $ context ): array
8787 {
@@ -93,8 +93,8 @@ protected function extractLegacyDataFromContext(array $context): array
9393 }
9494
9595 /**
96- * @param array $context
97- * @return array
96+ * @param array<string,mixed> $context
97+ * @return array<string,mixed>
9898 */
9999 protected function removeLegacyDataFromContext (array $ context ): array
100100 {
0 commit comments