PhpStorm Initialize fields

Posted 4 years ago by christophrumpel


I don't get the "initialize fields" option when injecting to my constructor. I am sure this was working some weeks ago, but now I just the the DocBloc option when I hit alt + Enter.


public function __constructor(Store $store) {...

I put the cursor on $store and hit alt + enter but it shows only the option for "Generating PHPDoc...". Anyone an idea what this could cause? I switched from the EAP to the new licensed version of PhpStorm 8 some days ago.

Cheers and thx

PS: Here is the complete file:

Please sign in or create an account to participate in this conversation.

Laracasts Mascot

Hi, Have We Met Yet?

Did you know that, in addition to the forum, Laracasts includes well over 1000 lessons on modern web development? All for the price of one lunch out per month.

Sign Me Up


Reply to

Use Markdown with GitHub-flavored code blocks.