Skip to content

Commit ecbe2c0

Browse files
authored
Merge pull request #226 from aik099/optional-before-required-params-fix
Removed default values for mandatory parameters (PHP 8 fix)
2 parents 7c811b7 + 63f0ae1 commit ecbe2c0

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

src/Jira/Api.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -759,7 +759,7 @@ public function createRemoteLink(
759759
* @return array|Result|false
760760
*/
761761
public function api(
762-
$method = self::REQUEST_GET,
762+
$method,
763763
$url,
764764
$data = array(),
765765
$return_as_array = false,

src/Jira/Api/Client/ClientInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ interface ClientInterface
5353
public function sendRequest(
5454
$method,
5555
$url,
56-
$data = array(),
56+
$data,
5757
$endpoint,
5858
AuthenticationInterface $credential,
5959
$is_file = false,

src/Jira/Api/Client/CurlClient.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ public function __construct()
6262
public function sendRequest(
6363
$method,
6464
$url,
65-
$data = array(),
65+
$data,
6666
$endpoint,
6767
AuthenticationInterface $credential,
6868
$is_file = false,

src/Jira/Api/Client/MemcacheProxyClient.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ public function __construct(ClientInterface $client, $server, $port)
6464
*
6565
* @param string $method Request method.
6666
* @param string $url URL.
67-
* @param array $data Request data.
67+
* @param array|string $data Request data.
6868
* @param string $endpoint Endpoint.
6969
* @param AuthenticationInterface $credential Credential.
7070
* @param boolean $is_file This is a file upload request.
@@ -75,7 +75,7 @@ public function __construct(ClientInterface $client, $server, $port)
7575
public function sendRequest(
7676
$method,
7777
$url,
78-
$data = array(),
78+
$data,
7979
$endpoint,
8080
AuthenticationInterface $credential,
8181
$is_file = false,

src/Jira/Api/Client/PHPClient.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ protected function isHttpsSupported()
9595
public function sendRequest(
9696
$method,
9797
$url,
98-
$data = array(),
98+
$data,
9999
$endpoint,
100100
AuthenticationInterface $credential,
101101
$is_file = false,

0 commit comments

Comments
 (0)