Why are all my Symfony2 method parameters red?

Answered

Can someone please tell me why I have this phpdoc error all over my Symfony2 project? Literally every php method argument is red across entire codebase including Symfony2's own source. It's incredibly irritating.  This happens with all themes. I can't get an error to pop up when hovering over them though it seems to be something with PHPDoc? PHPStorm 10.0.3 on OS X 10.10.4 Yosemite.

 

 

 

 

0
2 comments

Hi there,

That looks like an issue with your editor color schema.

There were changes in 10.x in a way how certain styles were handled (the inheritance mechanism). This affects custom color schemas (not bundled by default) and cannot be fixed automatically -- you will have to go into IDE Preferences and alter that style yourself.

"Settings/Preferences | Editor | Colors & Fonts | PHP"

I believe the right style would be "Functions and Methods | Parameter"

2
Avatar
Permanently deleted user

That was it. I got confused because at first I'd get a phpDoc error when I moused over the arguments. It then went away. It was an easy fix and I'm also happy to learn how easy it is to customize some of these settings. Thanks!

0

Please sign in to leave a comment.