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

Option class argument in service treated as missing with a warning. #485

Closed
kherge opened this issue Apr 21, 2015 · 1 comment
Closed

Option class argument in service treated as missing with a warning. #485

kherge opened this issue Apr 21, 2015 · 1 comment
Labels

Comments

@kherge
Copy link

kherge commented Apr 21, 2015

The last argument in one of my classes has a default value.

class MyService
{
    public function __construct(Interface1 $arg1, Interface2 $arg2, $arg3 = 123)
    {
    }
}

However, when I add it as service in the XML configuration file and only pass the first two parameters, I get a warning that the third argument is missing.

This should not be a warning.

@Koc
Copy link
Contributor

Koc commented Apr 24, 2015

Have the same error. Thank your for fix, will wait for the new version release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants