Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Static variable function calls do not count as variable usage #26

Closed
sirbrillig opened this issue Feb 5, 2018 · 0 comments
Closed

Static variable function calls do not count as variable usage #26

sirbrillig opened this issue Feb 5, 2018 · 0 comments
Labels

Comments

@sirbrillig
Copy link
Owner

The following example marks a warning on line 5, but it should not.

<?php

class MyClass {
    public function myFunc($meta, $callback) {
        $get_meta_callback = $callback;
        return self::$get_meta_callback( $meta  );
    }
}
@sirbrillig sirbrillig added the bug label Feb 5, 2018
@sirbrillig sirbrillig changed the title variable function calls do not count as variable usage Static variable function calls do not count as variable usage Feb 8, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant