Skip to content

Add support for variadic arguments#624

Open
tssge wants to merge 7 commits into
PHP-DI:masterfrom
tssge:variadic-arguments
Open

Add support for variadic arguments#624
tssge wants to merge 7 commits into
PHP-DI:masterfrom
tssge:variadic-arguments

Conversation

@tssge

@tssge tssge commented Sep 6, 2018

Copy link
Copy Markdown

This closes #619

This pull request is probably missing a lot of things, as I am not completely familiar with PHP-DI source yet. Please feel free to comment on what I could improve.

These changes pass all tests and a new test was added to support the new behavior.

@mnapoli

mnapoli commented Sep 18, 2018

Copy link
Copy Markdown
Member

You seem to have errors in code formatting (https://github.com/PHP-DI/PHP-DI/pull/624/checks). Could you fix them? And you will probably need to merge master in your branch because of an update in Symfony's coding style.

This makes ParameterResolver resolve variadic arguments correctly
Forgot to build container
Fix the test values index, I'm blind
@tssge tssge force-pushed the variadic-arguments branch from 656a714 to ecbd65b Compare September 18, 2018 15:37
@tssge

tssge commented Sep 18, 2018

Copy link
Copy Markdown
Author

Thank you for your feedback, I have fixed the formatting now

Comment thread tests/IntegrationTest/Definitions/AutowireDefinitionTest.php
Comment thread src/Definition/Resolver/ParameterResolver.php
@zelgerj

zelgerj commented Jan 13, 2020

Copy link
Copy Markdown

Hello, i would be interested about the status of this, since I also faced the same issue with variadic arguments. Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support for variadic arguments

3 participants