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

Support ... operator in function call #204

Closed
manuelpichler opened this Issue May 21, 2015 · 5 comments

Comments

Projects
None yet
5 participants
@manuelpichler
Member

manuelpichler commented May 21, 2015

PDepend doesn't support the PHP 5.6 operator in function calls:

function foo($a, $b) {
} 

foo(...[1, 2]);

@manuelpichler manuelpichler added the Bug label Sep 20, 2015

@manuelpichler manuelpichler added this to the 2.2.0 milestone Sep 20, 2015

@manuelpichler manuelpichler self-assigned this Sep 20, 2015

@manuelpichler manuelpichler modified the milestones: 2.3.0, 2.2.0 Sep 20, 2015

@StanAngeloff

This comment has been minimized.

StanAngeloff commented Nov 17, 2015

Is it possible to at least suppress parsing of the splat operator so files containing it don't cause Unexpected token errors? It's an ugly hack, but at least it would allow the file to be analysed.

@schodemeiss

This comment has been minimized.

schodemeiss commented Mar 2, 2016

I'm suffering from this too. @StanAngeloff Did you have any luck finding a way of surpressing it for the time being?

@StanAngeloff

This comment has been minimized.

StanAngeloff commented Mar 2, 2016

Nope, ignoring files manually that use ... to have tests pass at the moment.

@redbeardcreator

This comment has been minimized.

redbeardcreator commented May 23, 2016

I just ran into this today. The good news is, since #202 was recently closed, @manuelpichler may be thinking about this one 😄.

By the way, thanks @manuelpichler, for all the awesome work! 👌

@JeroenDeDauw

This comment has been minimized.

JeroenDeDauw commented May 29, 2016

+1, just ran into this as well

manuelpichler added a commit that referenced this issue Jan 6, 2017

manuelpichler added a commit that referenced this issue Jan 6, 2017

Merge pull request #288 from pdepend/GH204-support-ellipsis-operator-…
…in-function-call

Refs #204: Support for the ... operator in function calls implemented
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment