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

Check given $id for being a non-empty string #61

Closed
dropdevcoding opened this issue Sep 29, 2016 · 1 comment
Closed

Check given $id for being a non-empty string #61

dropdevcoding opened this issue Sep 29, 2016 · 1 comment
Milestone

Comments

@dropdevcoding
Copy link
Contributor

Since the Container-Interop ContainerInterface does not use type hinting but the get() and has() method have declared $id as string param type, AnnotationBeanFactory should check the given id for being a non-empty string and throw an exception else. Otherwise at least the AliasContainer will throw a confusing exception concerning the AliasContainer because hasAlias has defined a string type hint in its signature.

@shochdoerfer
Copy link
Member

Mind preparing a PR?

dropdevcoding added a commit to dropdevcoding/disco that referenced this issue Sep 30, 2016
shochdoerfer added a commit that referenced this issue Oct 3, 2016
@shochdoerfer shochdoerfer added this to the 0.6.0 milestone Oct 4, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants