Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change Annotation::value typehint to mixed #209

Merged
merged 1 commit into from
May 22, 2018
Merged

Conversation

malarzm
Copy link
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 :)

@@ -14,8 +14,6 @@ class Annotation
{
/**
* Value property. Common among all derived classes.
*
* @var string
Copy link
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
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
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
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
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
Member Author

malarzm commented May 22, 2018

@Ocramius mixed it is then 👍

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