PhpStorm Initialize fields

Posted 4 years ago by christophrumpel

Hey,

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.

Example:

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: http://laravel.io/bin/23K6E

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

Channels

Reply to

Use Markdown with GitHub-flavored code blocks.