Skip to content

Commit 103c141

Browse files
committed
Merge branch 'master' into 1.x
2 parents a115fa0 + 72c09db commit 103c141

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

src/Clients/CLIClient.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ class CLIClient extends Client
5050
*
5151
* @throws \Exception
5252
*/
53-
public function __construct(?string $path = null, string $java = null, bool $check = true)
53+
public function __construct(?string $path = null, ?string $java = null, bool $check = true)
5454
{
5555
parent::__construct();
5656

src/Clients/WebClient.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,7 @@ public function getHeaders(): array
303303
*/
304304
public function getHeader(string $name): ?string
305305
{
306-
$value = [];
306+
$value = null;
307307

308308
foreach($this->options[CURLOPT_HTTPHEADER] as $header)
309309
{

tests/BaseTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ abstract class BaseTest extends TestCase
4545
*
4646
* @throws \Exception
4747
*/
48-
public function __construct(string $name = null, array $data = array(), $dataName = '')
48+
public function __construct(?string $name = null, array $data = array(), $dataName = '')
4949
{
5050
self::$version = getenv('APACHE_TIKA_VERSION');
5151
self::$binaries = getenv('APACHE_TIKA_BINARIES');

tests/CommonTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ class CommonTest extends TestCase
3333
/**
3434
* Get env variables
3535
*/
36-
public function __construct(string $name = null, array $data = array(), $dataName = '')
36+
public function __construct(?string $name = null, array $data = array(), $dataName = '')
3737
{
3838
self::$version = getenv('APACHE_TIKA_VERSION');
3939
self::$binaries = getenv('APACHE_TIKA_BINARIES');

tests/ErrorTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ class ErrorTest extends TestCase
2929
/**
3030
* Get env variables
3131
*/
32-
public function __construct(string $name = null, array $data = array(), $dataName = '')
32+
public function __construct(?string $name = null, array $data = array(), $dataName = '')
3333
{
3434
self::$version = getenv('APACHE_TIKA_VERSION');
3535
self::$binaries = getenv('APACHE_TIKA_BINARIES');

0 commit comments

Comments
 (0)