Change template for "initializeFields" intention?

Answered

When adding a new argument to the constructor, I can choose "initialize fields" and it generates this:

```php

  /**
   * @var \stdClass
   */
protected $bar;

```

I prefer it to be:

```

  /** @var \stdClass */

  protected $bar

```

Is there  a way to change this? I checked "File and Code Templates" but couldn't find anything.

Working on a framework which constructor-based dependency injection I perform this operation really a lot and it would cut down a wee bit time.

 

thanks

2 comments

It's controlled by File and Code Templates | Includes | PHP Field Doc Comment.

0

Please sign in to leave a comment.