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

Closures for callables with myfunc(...) #6412

Closed
Tracked by #6395
weirdan opened this issue Sep 4, 2021 · 3 comments · Fixed by #7113
Closed
Tracked by #6395

Closures for callables with myfunc(...) #6412

weirdan opened this issue Sep 4, 2021 · 3 comments · Fixed by #7113
Assignees
Milestone

Comments

@weirdan
Copy link
Collaborator

weirdan commented Sep 4, 2021

https://psalm.dev/r/a33ad9cfa6

https://wiki.php.net/rfc/first_class_callable_syntax

nikic/php-parser support for 8.1 is tracked here: nikic/PHP-Parser#801

@psalm-github-bot
Copy link

psalm-github-bot bot commented Sep 4, 2021

I found these snippets:

https://psalm.dev/r/a33ad9cfa6
<?php

$ata = atan(...);
Psalm output (using commit 68ad0b2):

ERROR: ParseError - 3:16 - Syntax error, unexpected ')' on line 3

@weirdan weirdan added this to the PHP 8.1 milestone Sep 4, 2021
@weirdan weirdan added the parser label Sep 4, 2021
@trowski
Copy link
Contributor

trowski commented Nov 23, 2021

Anyone working on this? If not, I can take a stab at it.

@orklah
Copy link
Collaborator

orklah commented Nov 23, 2021

@trowski not for the moment, please do :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants