Skip to content

Commit

Permalink
Merge pull request #7 from veewee/deps2
Browse files Browse the repository at this point in the history
Broaden reflecta deps
  • Loading branch information
veewee authored Jun 12, 2024
2 parents ad67e98 + 2bb4785 commit e65511a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"require": {
"php": "~8.1.0 || ~8.2.0 || ~8.3.0",
"azjezz/psl": "^2.9.0",
"veewee/reflecta": "^0.5.0",
"veewee/reflecta": "~0.6",
"veewee/xml": "^3.1",
"php-soap/engine": "^2.9",
"php-soap/wsdl": "^1.6",
Expand Down
4 changes: 3 additions & 1 deletion src/Encoder/ObjectEncoder.php
Original file line number Diff line number Diff line change
Expand Up @@ -139,8 +139,10 @@ function (Property $property) use ($context, $data, $defaultAction) : Closure {
private function from(Context $context, array $properties, string $data): object
{
$nodes = (new DocumentToLookupArrayReader())($data);
/** @var Iso<TObj, array<string, mixed>> $objectData */
$objectData = object_data($this->className);

return object_data($this->className)->from(
return $objectData->from(
pull(
$properties,
function (Property $property) use ($context, $nodes): mixed {
Expand Down

0 comments on commit e65511a

Please sign in to comment.