Skip to content
This repository has been archived by the owner on Mar 1, 2023. It is now read-only.

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

Merged
merged 2 commits into from
Mar 10, 2017

Conversation

romm
Copy link
Owner

@romm romm commented Mar 10, 2017

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!

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
Copy link

Coverage Status

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

@romm romm merged commit 15b162a into development Mar 10, 2017
@romm romm deleted the feature/array-object-annotation branch March 10, 2017 13:26
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants