PhpStorm 2017.1.3 How to set warning for IF( $a = 0) ?

Answered

Hello,

How can I set in the config of PhpStorm 2017.1.3  for the warning of this dangerous code example:  if( $a = 0)  { //..}

It was set in the old version and now after the update no longer ...

Thank you for help!

0
2 comments

Hi there,

Well ... "Settings/Preferences | Editor | Inspections" -- use search field and look for "assignment" rules

The one you are after most likely would be "PHP | Probable bugs | Assignment in condition"

1
Avatar
Permanently deleted user

It works! Thank you!

0

Please sign in to leave a comment.