Zend Studio reports warning: Assignment in condition. Is this so bad?

后端 未结 8 1631
轻奢々
轻奢々 2020-12-11 02:47

I have recently started using Zend Studio which has reported as warning the following type of code:

$q = query(\"select * from some_table where some_conditio         


        
8条回答
  •  隐瞒了意图╮
    2020-12-11 03:35

    Zend Studio is trying to help you in writing better code that debugs easier. Disabling Semantic checking is not a good idea, it just sweeps potential problems under the carpet and you'll be missing out on the real problems. That IS a decent reason! Don't avoid warning messages by ignoring them, modify your code by implementing the correct solution.

提交回复
热议问题