Skip to content

Commit cf0b3f9

Browse files
authored
Merge pull request #25 from fetzi/feature/add-decoder-to-callback
Add JsonDecoder instance to callback function
2 parents 5788347 + 056ee8f commit cf0b3f9

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

.travis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ php:
44
- 7.0
55
- 7.1
66
- 7.2
7+
- 7.3
78

89
before_script:
910
- travis_retry composer self-update

src/Bindings/CallbackBinding.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public function __construct($property, $callback)
4141
*/
4242
public function bind($jsonDecoder, $jsonData, $propertyAccessor)
4343
{
44-
$propertyAccessor->set($this->callback->__invoke($jsonData));
44+
$propertyAccessor->set($this->callback->__invoke($jsonData, $jsonDecoder));
4545
}
4646

4747
/**

0 commit comments

Comments
 (0)