Skip to content

Change Annotation::value typehint to mixed#209

Merged
malarzm merged 1 commit intomasterfrom
malarzm-patch-1
May 22, 2018
Merged

Change Annotation::value typehint to mixed#209
malarzm merged 1 commit intomasterfrom
malarzm-patch-1

Conversation

@malarzm
Copy link
Copy Markdown
Member

@malarzm malarzm commented May 21, 2018

string is wrong as it can also be null or an array. Merging this (and tagging a new bugfix release) would help me with doctrine/mongodb-odm#1803 :)

/**
* Value property. Common among all derived classes.
*
* @var string
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should be annotated as mixed instead of being skipped

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Isn't mixed implied when it's not further specified?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was also my assumption. Unless we're explicitly saying mixed just to show we care enough :D

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Isn't mixed implied when it's not further specified?

"implied" is something we no longer really allow. Even our coding standards prevent us from skipping parameters/return types. Possibly a missing CS rule, @carusogabriel?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Ocramius I’ll add some tests in our CS repo and discovered what should be fixed to avoid it :)

@Ocramius Ocramius added the bug label May 22, 2018
@Ocramius Ocramius added this to the v1.6.1 milestone May 22, 2018
`string` is wrong as it can also be `null` or an `array`. Merging this (and tagging a new bugfix release) would help me with doctrine/mongodb-odm#1803 :)
@malarzm malarzm force-pushed the malarzm-patch-1 branch from 744b521 to 199df6a Compare May 22, 2018 10:54
@malarzm malarzm changed the title Drop Annotation::value typehint Change Annotation::value typehint to mixed May 22, 2018
@malarzm
Copy link
Copy Markdown
Member Author

malarzm commented May 22, 2018

@Ocramius mixed it is then 👍

Copy link
Copy Markdown
Member

@Ocramius Ocramius left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@malarzm malarzm merged commit 6d53f10 into master May 22, 2018
@malarzm malarzm deleted the malarzm-patch-1 branch May 22, 2018 11:08
@alcaeus alcaeus modified the milestones: v1.6.1, 1.11.0 May 7, 2020
@alcaeus alcaeus mentioned this pull request May 8, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants