Change template for "initializeFields" intention? Follow
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
Please sign in to leave a comment.
It's controlled by File and Code Templates | Includes | PHP Field Doc Comment.
Oh perfekt, thanks! ❤️