PhpStorm Tips & Tricks #18
Initialize Properties Automatically

⬅ Back to all tips
photo of Christoph Rumpel

Christoph Rumpel 🤠

@christophrumpel

🧪 PhpStorm Tips & Tricks #18 - Initialize Properties Automatically

Constructor arguments can be initialized by PhpStorm. Here are some interesting facts:

1. You can initialize multiple fields
2. PHP < 7.4 it uses PHP DocBlocks
3. You can edit the template
4. >= 7.4 it skips the DocBlock ❤️


Ready for more?

Mastering PhpStorm Logo text

Tips & Tricks was just the beginning. In my new video course, I cover all the essential features of PhpStorm like Refactoring, Testing, Debugging and Git in detail.

Show Me
⬅ Back to all tips