@@ -59,7 +59,7 @@ class JiraClient
5959 *
6060 * @throws JiraException
6161 */
62- public function __construct (ConfigurationInterface $ configuration = null , LoggerInterface $ logger = null , string $ path = './ ' )
62+ public function __construct (? ConfigurationInterface $ configuration = null , ? LoggerInterface $ logger = null , string $ path = './ ' )
6363 {
6464 if ($ configuration === null ) {
6565 if (!file_exists ($ path .'.env ' )) {
@@ -188,7 +188,7 @@ protected function filterNullVariable(array $haystack): array
188188 *
189189 * @return string|bool
190190 */
191- public function exec (string $ context , array |string $ post_data = null , string $ custom_request = null , string $ cookieFile = null ): string |bool
191+ public function exec (string $ context , array |string | null $ post_data = null , ? string $ custom_request = null , ? string $ cookieFile = null ): string |bool
192192 {
193193 $ url = $ this ->createUrlByContext ($ context );
194194
@@ -441,7 +441,7 @@ protected function createUrlByContext(string $context): string
441441 /**
442442 * Add authorize to curl request.
443443 */
444- protected function authorization (\CurlHandle $ ch , array &$ curl_http_headers , string $ cookieFile = null ): void
444+ protected function authorization (\CurlHandle $ ch , array &$ curl_http_headers , ? string $ cookieFile = null ): void
445445 {
446446 // use cookie
447447 if ($ this ->getConfiguration ()->isCookieAuthorizationEnabled ()) {
@@ -516,7 +516,7 @@ public function toHttpQueryParameter(array $paramArray, bool $dropNullKey = true
516516 /**
517517 * download and save into outDir.
518518 */
519- public function download (string $ url , string $ outDir , string $ file , string $ cookieFile = null ): mixed
519+ public function download (string $ url , string $ outDir , string $ file , ? string $ cookieFile = null ): mixed
520520 {
521521 $ curl_http_header = [
522522 'Accept: */* ' ,
0 commit comments