Skip to content
This repository was archived by the owner on Jan 29, 2020. It is now read-only.

Commit ea00e6a

Browse files
committed
Merge branch 'hotfix/24-strict-types' into release-1.0.0
Close #24
2 parents 56f097e + b193e4b commit ea00e6a

22 files changed

+48
-3
lines changed

CHANGELOG.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,10 @@ Versions 0.3.0 and prior were released as "weierophinney/problem-details".
1515

1616
### Changed
1717

18-
- Nothing.
18+
- [#24](https://github.com/zendframework/zend-problem-details/pull/24)
19+
updates all classes to use scalar and return type hints, including nullable
20+
and void types. If you were extending classes within an earlier release, you
21+
may need to update signatures of any methods you override.
1922

2023
### Deprecated
2124

src/ConfigProvider.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
* @license https://github.com/zendframework/zend-problem-details/blob/master/LICENSE.md New BSD License
66
*/
77

8+
declare(strict_types=1);
9+
810
namespace Zend\ProblemDetails;
911

1012
/**

src/Exception/CommonProblemDetailsExceptionTrait.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
* @license https://github.com/zendframework/zend-problem-details/blob/master/LICENSE.md New BSD License
66
*/
77

8+
declare(strict_types=1);
9+
810
namespace Zend\ProblemDetails\Exception;
911

1012
/**

src/Exception/ExceptionInterface.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
* @license https://github.com/zendframework/zend-problem-details/blob/master/LICENSE.md New BSD License
66
*/
77

8+
declare(strict_types=1);
9+
810
namespace Zend\ProblemDetails\Exception;
911

1012
/**

src/Exception/InvalidResponseBodyException.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
* @license https://github.com/zendframework/zend-problem-details/blob/master/LICENSE.md New BSD License
66
*/
77

8+
declare(strict_types=1);
9+
810
namespace Zend\ProblemDetails\Exception;
911

1012
use RuntimeException;

src/Exception/ProblemDetailsExceptionInterface.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
* @license https://github.com/zendframework/zend-problem-details/blob/master/LICENSE.md New BSD License
66
*/
77

8+
declare(strict_types=1);
9+
810
namespace Zend\ProblemDetails\Exception;
911

1012
use JsonSerializable;

src/ProblemDetailsMiddleware.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
* @license https://github.com/zendframework/zend-problem-details/blob/master/LICENSE.md New BSD License
66
*/
77

8+
declare(strict_types=1);
9+
810
namespace Zend\ProblemDetails;
911

1012
use ErrorException;

src/ProblemDetailsMiddlewareFactory.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
* @license https://github.com/zendframework/zend-problem-details/blob/master/LICENSE.md New BSD License
66
*/
77

8+
declare(strict_types=1);
9+
810
namespace Zend\ProblemDetails;
911

1012
use Psr\Container\ContainerInterface;

src/ProblemDetailsNotFoundHandler.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
* @license https://github.com/zendframework/zend-problem-details/blob/master/LICENSE.md New BSD License
66
*/
77

8+
declare(strict_types=1);
9+
810
namespace Zend\ProblemDetails;
911

1012
use Interop\Http\Server\MiddlewareInterface;

src/ProblemDetailsNotFoundHandlerFactory.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
* @license https://github.com/zendframework/zend-problem-details/blob/master/LICENSE.md New BSD License
66
*/
77

8+
declare(strict_types=1);
9+
810
namespace Zend\ProblemDetails;
911

1012
use Psr\Container\ContainerInterface;

0 commit comments

Comments
 (0)