Skip to content

Commit 562ec31

Browse files
mhujerpolyfractal
authored andcommitted
Add declare(strict_types=1) to src/ (#710)
* declare(strict_types = 1); in src/ * fix issues discovered by strict_types
1 parent 912dd12 commit 562ec31

File tree

197 files changed

+413
-4
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

197 files changed

+413
-4
lines changed

src/Elasticsearch/Client.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
<?php
22

3+
declare(strict_types = 1);
4+
35
namespace Elasticsearch;
46

57
use Elasticsearch\Common\Exceptions\BadMethodCallException;

src/Elasticsearch/ClientBuilder.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
<?php
22

3+
declare(strict_types = 1);
4+
35
namespace Elasticsearch;
46

57
use Elasticsearch\Common\Exceptions\InvalidArgumentException;

src/Elasticsearch/Common/EmptyLogger.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
<?php
22

3+
declare(strict_types = 1);
4+
35
namespace Elasticsearch\Common;
46

57
use Psr\Log\AbstractLogger;

src/Elasticsearch/Common/Exceptions/AlreadyExpiredException.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
<?php
22

3+
declare(strict_types = 1);
4+
35
namespace Elasticsearch\Common\Exceptions;
46

57
/**

src/Elasticsearch/Common/Exceptions/BadMethodCallException.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
<?php
22

3+
declare(strict_types = 1);
4+
35
namespace Elasticsearch\Common\Exceptions;
46

57
/**

src/Elasticsearch/Common/Exceptions/BadRequest400Exception.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
<?php
22

3+
declare(strict_types = 1);
4+
35
namespace Elasticsearch\Common\Exceptions;
46

57
/**

src/Elasticsearch/Common/Exceptions/ClientErrorResponseException.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
<?php
22

3+
declare(strict_types = 1);
4+
35
namespace Elasticsearch\Common\Exceptions;
46

57
/**

src/Elasticsearch/Common/Exceptions/Conflict409Exception.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
<?php
22

3+
declare(strict_types = 1);
4+
35
namespace Elasticsearch\Common\Exceptions;
46

57
/**

src/Elasticsearch/Common/Exceptions/Curl/CouldNotConnectToHost.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
<?php
22

3+
declare(strict_types = 1);
4+
35
namespace Elasticsearch\Common\Exceptions\Curl;
46

57
use Elasticsearch\Common\Exceptions\ElasticsearchException;

src/Elasticsearch/Common/Exceptions/Curl/CouldNotResolveHostException.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
<?php
22

3+
declare(strict_types = 1);
4+
35
namespace Elasticsearch\Common\Exceptions\Curl;
46

57
use Elasticsearch\Common\Exceptions\ElasticsearchException;

0 commit comments

Comments
 (0)