Skip to content

Commit e65511a

Browse files
authored
Merge pull request #7 from veewee/deps2
Broaden reflecta deps
2 parents ad67e98 + 2bb4785 commit e65511a

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
"require": {
2323
"php": "~8.1.0 || ~8.2.0 || ~8.3.0",
2424
"azjezz/psl": "^2.9.0",
25-
"veewee/reflecta": "^0.5.0",
25+
"veewee/reflecta": "~0.6",
2626
"veewee/xml": "^3.1",
2727
"php-soap/engine": "^2.9",
2828
"php-soap/wsdl": "^1.6",

src/Encoder/ObjectEncoder.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,8 +139,10 @@ function (Property $property) use ($context, $data, $defaultAction) : Closure {
139139
private function from(Context $context, array $properties, string $data): object
140140
{
141141
$nodes = (new DocumentToLookupArrayReader())($data);
142+
/** @var Iso<TObj, array<string, mixed>> $objectData */
143+
$objectData = object_data($this->className);
142144

143-
return object_data($this->className)->from(
145+
return $objectData->from(
144146
pull(
145147
$properties,
146148
function (Property $property) use ($context, $nodes): mixed {

0 commit comments

Comments
 (0)