Skip to content

Conversation

@TysonAndre
Copy link
Contributor

Closures require 1 or more variables if there is a use clause.

php > function() use(){};
Parse error: syntax error, unexpected ')', expecting '&' or variable
(T_VARIABLE) in php shell code on line 1

Closures require 1 or more variables if there is a `use` clause.

```
php > function() use(){};
Parse error: syntax error, unexpected ')', expecting '&' or variable
(T_VARIABLE) in php shell code on line 1
```
@roblourens roblourens merged commit f0b68cd into microsoft:master Jul 2, 2020
@TysonAndre TysonAndre deleted the missing-variable branch March 27, 2021 16:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants