You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if the name of the element is always declaration, there is no (easy) way to solve it because with PHP you can not have two properties having the same name
Yes, name is always Declaration but in it's own namespace.
And the not so easy way would probably involve using the namespace when creating the properties for the PHP classes? (type hinting class properties would be nice here..)
For now i'll go for the poor man's solution and do a rename of the Declaration namespaces, make them unique and do a search/replace on the XML end result.
And the not so easy way would probably involve using the namespace when creating the properties for the PHP classes? (type hinting class properties would be nice here..)
The not easy part is "de-serializing" an xml where the node just says Declaration as name.
To understand which PHP class should be instantiated would be necessary to "guess it somehow" (most probably based on the content of the node... but that is not easy at all)
In the following example only one (the last one in the choice list) ref with property name 'Declaration' is included in BB.yml
input (data is modified/simplified to clearify problem) :
output:
Any idea how to solve/fix this?
Thanks!
The text was updated successfully, but these errors were encountered: