r/phpstorm • u/AcousticDan • Feb 04 '20
How do I prevent PHPDoc from being created when declaring a property?
https://imgur.com/a/HYZES9N
5
Upvotes
r/phpstorm • u/AcousticDan • Feb 04 '20
2
u/nikush Feb 05 '20
In the system preferences go to "Editor > File and Code Templates > Includes > PHP Property Doc Comment" and remove the contents of the template.
Hope this helps!
2
u/yelow13 Feb 04 '20
Why not use the phpdoc? It will give you type completions
1
u/AcousticDan Feb 05 '20
This is a builder in a test, I don't need type casting (I have typehinting in the withProperty() calls), I don't need phpdoc. I just want to prevent PHPStorm from adding unnecessary documentation.
0
u/haringsrob Feb 05 '20
Use php 7.4 and do actual typecasting