We should write a linter rule to detect when a class name is used instead of self:
class Foo {
const BAR = 'bar';
public function baz() {
- return Foo::BAR;
+ return self::BAR;
}
}We should write a linter rule to detect when a class name is used instead of self:
class Foo {
const BAR = 'bar';
public function baz() {
- return Foo::BAR;
+ return self::BAR;
}
}| rARC Arcanist | |||
| D12419 | rARC6295134bc7fb Add a linter rule for useless overriding methods | ||