From bd024038b8e07aabba11cc8ea61b80d954806bfe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Chris=20M=C3=BCller?= <2566282+brotkrueml@users.noreply.github.com> Date: Fri, 22 May 2020 17:18:56 +0200 Subject: [PATCH] [TASK] Declare anonymous function as static --- src/Client/RestClient.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Client/RestClient.php b/src/Client/RestClient.php index 0446f21..ab38f4e 100644 --- a/src/Client/RestClient.php +++ b/src/Client/RestClient.php @@ -176,7 +176,7 @@ public function request(string $method, string $resource, $data = []): ResponseI private function sendForm(string $method, string $resource, array $multipart): ResponseInterface { /** @psalm-suppress MissingClosureParamType */ - \array_walk($multipart, function (&$value): void { + \array_walk($multipart, static function (&$value): void { if ($value instanceof FileInterface) { $value = $value->toArray(); }