Skip to content

Commit 724f0a1

Browse files
gmponosNyholm
authored andcommitted
Added declare strict types (#137)
1 parent 53bddb2 commit 724f0a1

Some content is hidden

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

52 files changed

+105
-2
lines changed

src/BatchClient.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 Http\Client\Common;
46

57
use Http\Client\Exception;

src/BatchClientInterface.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
<?php
22

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

5-
use Http\Client\Exception;
67
use Http\Client\HttpClient;
78
use Http\Client\Common\Exception\BatchException;
89
use Psr\Http\Message\RequestInterface;

src/BatchResult.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 Http\Client\Common;
46

57
use Http\Client\Exception;

src/Deferred.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 Http\Client\Common;
46

57
use Http\Client\Exception;

src/EmulatedHttpAsyncClient.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 Http\Client\Common;
46

57
use Http\Client\HttpAsyncClient;

src/EmulatedHttpClient.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 Http\Client\Common;
46

57
use Http\Client\HttpAsyncClient;

src/Exception/BatchException.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 Http\Client\Common\Exception;
46

57
use Http\Client\Exception\TransferException;

src/Exception/CircularRedirectionException.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 Http\Client\Common\Exception;
46

57
use Http\Client\Exception\HttpException;

src/Exception/ClientErrorException.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 Http\Client\Common\Exception;
46

57
use Http\Client\Exception\HttpException;

src/Exception/HttpClientNotFoundException.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 Http\Client\Common\Exception;
46

57
use Http\Client\Exception\TransferException;

0 commit comments

Comments
 (0)