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

Definition callable with array and "self" string #7468

Closed
liborm85 opened this issue Jun 13, 2022 · 2 comments
Closed

Definition callable with array and "self" string #7468

liborm85 opened this issue Jun 13, 2022 · 2 comments

Comments

@liborm85
Copy link

Bug report

After update to version 1.7.12 is callable definition with array and "self" reported as error, eg. array("self", "compare").
PHP this definition supports: https://3v4l.org/nC2pg

Code snippet that reproduces the problem

https://phpstan.org/r/296d5dfa-9fa1-42af-9929-ebcd95e6d6dd

Expected output

No errors!

@ondrejmirtes
Copy link
Member

This is very similar to #1105 and I don't plan to support it.

It's deprecated as of PHP 8.2: https://3v4l.org/nC2pg/rfc

It really didn't work in previous version, but it was marked as an "unknown" callable which was fixed thanks to: phpstan/phpstan-src#1404

@github-actions
Copy link

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 15, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants