<?php compact(array|string $var_name, array|string ...$var_names): array
<?php [, $variableName, $viewFile] = $matches; $variableName = ltrim($variableName, '$'); return compact('variableName', 'viewFile'); } return null;
<?php public function makeCurlRequest(string $verb, string $fullUrl, array $headers = [], array $arguments = []): Response { $this->requests[] = compact('verb', 'fullUrl', 'headers', 'arguments'); return new Response(['http_code' => 200], 'my response', ''); }