Phpdocumentor: Lacking support for grouped use declarations in php 7.0

Created on 25 Feb 2017  路  5Comments  路  Source: phpDocumentor/phpDocumentor

phpDocumentor does not support grouped declaration use, a feature of 7.0:
http://php.net/manual/en/language.namespaces.importing.php

I agree with user @ilianiv that this feature should be available as previously outlined here:
https://github.com/phpDocumentor/phpDocumentor2/issues/1801

bug

Most helpful comment

I added a test case to show the correct working and processing of grouped namespaces.
This feature is part of v3 and can be tested with the current version in develop.

All 5 comments

Yes, and anonymous classes of 7.1 are also not supported.

I agree that we should support grouped declaration uses and I have triaged this item as a bug to be picked up. At this moment I am doing an inventory of the open issues and we will try to address this issue as soon as we can.

As for anonymous classes; this category of syntax is equally troublesome to anonymous functions and we will need to investigate how this can best be resolved; if we even can without complicated constructs. I consider it out of scope for this specific issue and a new issue needs to be opened for this (if that doesn't already exist) to prevent conflating this issue.

Based on my current research an upgrade of the NikiC PHP-Parser dependency is necessary to v2 or even better v3. Unfortunately, these major upgrades also bump the minimal PHP version to 5.4 or 5.5 and this causes a BC break in the project. In order to do this, we would need to bump the major version for phpDocumentor to 3 and we are currently discussing what to do with the current effort for phpDocumentor 3.

As we have a meeting on monday to discuss this I am going to postpone work on this until that meeting has been.

Thank you for the update. Keep up the good work.

I added a test case to show the correct working and processing of grouped namespaces.
This feature is part of v3 and can be tested with the current version in develop.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

joshmbg picture joshmbg  路  5Comments

alissonzampietro picture alissonzampietro  路  6Comments

jrfnl picture jrfnl  路  5Comments

juliushaertl picture juliushaertl  路  5Comments

h0gar picture h0gar  路  4Comments