Closed marc-mabe closed 8 years ago
Please submit a PR with a Unit Test that covers the expected behavior.
As i see it the AbstractOptions::setFromArray
only call magic __set
Method - which try to execute a Setter of MyOptions
.
@marc-mabe I'd consider this to be something the concrete implementations should do, not the abstract class.
The abstract class is written to cover the majority of use cases. Extensions can handle this aspect. If order of operations is required, then the implementation should override setFromArray()
to enforce the order.
In some cases the order of options passed as array in
AbstractOptions::setFromArray()
is important.E.g. An option 'host' differs by option
resource_id
, than the following two snippets produce a different result and produces WTF moments.For more information read here: zendframework/zf2#6381