Skip to content

Commit 3ee234c

Browse files
committed
Fix to strict param type
fixes #41
1 parent e35b690 commit 3ee234c

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
44
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
55
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
66

7+
## [4.0.3] - 2020-11-30
8+
### Fixed
9+
- To strict param type in `transform` method
10+
711
## [4.0.2] - 2020-10-15
812
### Fixed
913
- Another issue where CallbackBinding wasn't handled.

src/JsonDecoder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ public function shouldAutoCase(): bool
137137
*
138138
* @throws JsonValueException if the json data is not valid
139139
*/
140-
protected function transform(Transformer $transformer, array $jsonArrayData, $instance)
140+
protected function transform(Transformer $transformer, ?array $jsonArrayData, $instance)
141141
{
142142
if (empty($jsonArrayData)) {
143143
return null;

0 commit comments

Comments
 (0)