Use short array syntax

This commit is contained in:
Zach Borboa
2021-03-18 01:15:52 -04:00
parent b7a69a5ca5
commit 161f9aea63
71 changed files with 904 additions and 904 deletions
+2 -2
View File
@@ -6,11 +6,11 @@ use Curl\Curl;
// curl --request PATCH "https://httpbin.org/patch" --data "a=1&b=2&c=3"
$curl = new Curl();
$curl->patch('https://httpbin.org/patch', array(
$curl->patch('https://httpbin.org/patch', [
'a' => '1',
'b' => '2',
'c' => '3',
));
]);
if ($curl->error) {
echo 'Error: ' . $curl->errorCode . ': ' . $curl->errorMessage . "\n";