unused-variable-external

当一个参数被声明但在方法中没有使用时引发。

  1. public function sum(a, b, c) // c is not used
  2. {
  3. return a + b;
  4. }