Skip to content

Commit

Permalink
Upgrade to xp-framework/reflection 3.1+
Browse files Browse the repository at this point in the history
  • Loading branch information
thekid committed Mar 29, 2024
1 parent 85c8c63 commit 0b512d9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"require" : {
"xp-framework/core": "^12.0 | ^11.0 | ^10.0",
"xp-framework/collections": "^10.0 | ^9.0 | ^8.0",
"xp-framework/reflection": "^3.0 | ^2.0",
"xp-framework/reflection": "^3.1",
"php" : ">=7.4.0"
},
"require-dev" : {
Expand Down
2 changes: 1 addition & 1 deletion src/main/php/xml/meta/Marshaller.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ protected static function recurse($instance, $type, $node, $inject) {
if (($factory= $type->annotation(Xmlfactory::class)) && ($element= $factory->argument('element'))) {
$node->setName($element);
} else {
$node->setName(strtolower($type->class()->getSimpleName()));
$node->setName(strtolower($type->declaredName()));
}
}

Expand Down

0 comments on commit 0b512d9

Please sign in to comment.