romm / configuration_object

Transform any configuration plain array into a dynamic and configurable object structure, and pull apart configuration handling from the main logic of your script. Use provided services to add more functionality to your objects: cache, parents, persistence and much more.
GNU General Public License v3.0
6 stars 4 forks source link

[FEATURE] Introduce support for common array object annotation #17

Closed romm closed 7 years ago

romm commented 7 years ago

Previously, when a property would be filled by an array of object, only two annotations were supported:

\ArrayObject<\Some\Class> and array<\Some\Class>

They are not user-friendly, and most of the time the array is a basic array (not an ObjectStorage for instance). The common annotation for this would be:

\Some\Class[] - which provides better IDE auto-completion, and has better readability.

This commit introduces support for this annotation, enjoy!

coveralls commented 7 years ago

Coverage Status

Coverage decreased (-0.4%) to 95.564% when pulling 416e7cd409ec5253e1435910b5ac8e7392109c83 on feature/array-object-annotation into 4f8f8c9f1656d635462e31812cb01bfd00a87cc2 on development.