From 3add01a40b5b64d5726dccfdac22b6dd8011a55f Mon Sep 17 00:00:00 2001 From: Paolo Rossi Date: Mon, 18 Oct 2021 23:51:43 +0200 Subject: [PATCH] PHPStan level 6 in src/Composer/Config (refs #10159) (#10182) --- src/Composer/Config/JsonConfigSource.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/Composer/Config/JsonConfigSource.php b/src/Composer/Config/JsonConfigSource.php index 4be155782..efede264e 100644 --- a/src/Composer/Config/JsonConfigSource.php +++ b/src/Composer/Config/JsonConfigSource.php @@ -206,6 +206,13 @@ class JsonConfigSource implements ConfigSourceInterface }); } + /** + * @param string $method + * @param mixed ...$args + * @param callable $fallback + * + * @return void + */ protected function manipulateJson($method, $args, $fallback) { $args = func_get_args(); @@ -290,7 +297,7 @@ class JsonConfigSource implements ConfigSourceInterface /** * Prepend a reference to an element to the beginning of an array. * - * @param array $array + * @param mixed[] $array * @param mixed $value * @return int */