[DCOM-97] phpParser.php and 'use' keyword in anonymous functions Created: 13/Feb/12 Updated: 30/Mar/12 Resolved: 30/Mar/12 |
|
| Status: | Closed |
| Project: | Doctrine Common |
| Component/s: | Annotations |
| Affects Version/s: | 2.1.4 |
| Fix Version/s: | 2.2 |
| Type: | Bug | Priority: | Major |
| Reporter: | Thomas Lecarpentier | Assignee: | Benjamin Eberlei |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Environment: |
php 5.3, Symfony2, linux |
||
| Description |
|
When i use the keyword 'use' in anonymous function (like describe in page http://php.net/manual/en/functions.anonymous.php) Exemple : /**
... The phpParser generate error [ErrorException] It try to parse 'use ($year, $month, $day)' as Class |
| Comments |
| Comment by Fabio B. Silva [ 25/Mar/12 ] |
|
I think this is fixed on the php parser rewrite. (2.2) |
| Comment by Fabio B. Silva [ 25/Mar/12 ] |
|
Coverage added : https://github.com/doctrine/common/commit/7ec510dbb2279f76a00ecf3f911298879c6ba1a1 I think this could be closed.. |
| Comment by Fabio B. Silva [ 30/Mar/12 ] |
|
Fixed on php parser rewrite. (2.2) |