phpcs-import-detection icon indicating copy to clipboard operation
phpcs-import-detection copied to clipboard

Class method returning by reference triggers false positive

Open mundschenk-at opened this issue 2 years ago • 0 comments

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;
    }
}

mundschenk-at avatar Apr 12 '23 20:04 mundschenk-at