Skip to content

correct issue with validator failing on class alias as typehint. #45

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

Merged
merged 2 commits into from
Jun 20, 2017
Merged

correct issue with validator failing on class alias as typehint. #45

merged 2 commits into from
Jun 20, 2017

Conversation

craigh
Copy link
Contributor

@craigh craigh commented Jun 18, 2017

fixes #43.

all code written by @stloyd refs #44

craigh added 2 commits June 18, 2017 15:40
Matthias\SymfonyServiceDefinitionValidator\Functional\FunctionalTest::testIfTheServiceDefinitionsAreCorrectTheContainerWillBeCompiled
Symfony\Component\DependencyInjection\Exception\InvalidArgumentException: Invalid key "dsn" found in arguments of method "__construct()" for service "pdo": only integer or $named arguments are allowed.
@craigh
Copy link
Contributor Author

craigh commented Jun 18, 2017

@matthiasnoback this is the same as the code from #44 without the extra stuff. I did have to correct another issue in the pdo config (3da9e51) in order to get the test to pass.

Sadly #39 still prevents zikula from using the latest version of this lib. I've cobbled together a version which use 1.2.6 + these commits and that works for us at the moment.

@matthiasnoback
Copy link
Owner

Looks good to me, thanks @craigh and @stloyd.

@stloyd stloyd merged commit b79f25a into matthiasnoback:master Jun 20, 2017
@stloyd
Copy link
Collaborator

stloyd commented Jun 20, 2017

Thanks, too bad you didn't mark me as author of commits but let's go with this ;)

@craigh craigh deleted the alias-fail-43 branch June 20, 2017 16:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

validator fails with alias
3 participants