phpcs-import-detection
phpcs-import-detection copied to clipboard
Class method returning by reference triggers false positive
Code like this (specifically: &) triggers a false positive for ImportDetection.Imports.RequireImports.Symbol:
class Foo {
private static $something = 'foobar';
public &function bar() {
return self::$something;
}
}