Skip to content

Commit

Permalink
[TASK] Declare anonymous function as static
Browse files Browse the repository at this point in the history
  • Loading branch information
brotkrueml committed May 22, 2020
1 parent 064a25e commit bd02403
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Client/RestClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down

0 comments on commit bd02403

Please sign in to comment.