[Flow] Constructor injection and IDE
Mathis Hoffmann
mathis at hoffpost.de
Fri Aug 9 11:08:50 CEST 2013
Hey,
I'm using PHPStorm for developing a Flow app. Now I've come to the point
that I need to use constructor injection. This works very well. The
constructor accepts some parameters and at the end I have a parameter
that becomes injected. My problem now is that at the point where I
create a new object using that constructor, PHPStorm complains about the
missing constructor parameter. I tried to set a default value
(__construct(..,.., \My\Injected\Type $parameter = null)) but that
disabled constructor injection.Does anyone have a solution for that?
I know this is only aesthetic but I really like code inspection not
displaying any warnings but just a green "lamp" ;)
Cheers
Mathis Hoffmann
More information about the Flow
mailing list