How to deal with “method not found in class” warning for magically implemented methods?

后端 未结 4 1785
长发绾君心
长发绾君心 2020-12-05 09:08

I am sitting on a large codebase that contains several classes that expose functionality through magically implemented methods (using __call and __callSta

4条回答
  •  囚心锁ツ
    2020-12-05 09:48

    Rather than globally turning off inspections by downgrading the severity of the inspection, you can add a comment to the single line to ignore just that particular inspection.

        /** @noinspection PhpUndefinedMethodInspection */
        Assertion::NullOrAssertionDoesNotExist();
    

提交回复
热议问题