Skip to content

Commit 056ee8f

Browse files
committed
Add JsonDecoder instance to callback function
1 parent afda5cd commit 056ee8f

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)