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

False "unused private method" when used in static constructor/factory #558

Open
roperto opened this issue Mar 23, 2018 · 0 comments · May be fixed by #1069
Open

False "unused private method" when used in static constructor/factory #558

roperto opened this issue Mar 23, 2018 · 0 comments · May be fixed by #1069
Assignees
Milestone

Comments

@roperto
Copy link

roperto commented Mar 23, 2018

Related to #253

See for example:

public static function create() {
    $obj = new static();
    $obj->a_private_method();
}

(I know it is over simplified, you could rewrite it, but that's just an example without all the boilerplate)

@roperto roperto changed the title False "unused private method" when used in constructor/factory False "unused private method" when used in static constructor/factory Mar 23, 2018
@kylekatarnls kylekatarnls added this to the 2.16.0 milestone Feb 17, 2024
@kylekatarnls kylekatarnls self-assigned this Feb 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging a pull request may close this issue.

2 participants