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

Alias for trait causes error #312

Closed
maikgreubel opened this issue Aug 25, 2017 · 0 comments
Closed

Alias for trait causes error #312

maikgreubel opened this issue Aug 25, 2017 · 0 comments
Assignees
Labels

Comments

@maikgreubel
Copy link

In my class an trait alias is defined which causes this error:

     [exec] [25.08.2017 - 13:54:32] Scanning directory 'd:/web/phpGenerics/src' for files to process
     [exec]
     [exec] .........................................f........  [50]
     [exec] ...                                                 [53]
     [exec]
     [exec] [25.08.2017 - 13:54:33] The following file(s) had errors during processing and were excluded:
     [exec] [25.08.2017 - 13:54:33]  - d:/web/phpGenerics/src/Generics/Streams/MemoryStream.php (Referenced trait "" not used [UnitCollectingVisitor.php:213])

This is the code which defines the alias trait:

class MemoryStream implements InputOutputStream
{
    use Interpolator {
        interpolate as tinterpolate;
    }

The alias for trait syntax is pretty correct as shown in documenation (paragraph "Conflict resolution"): http://php.net/manual/en/language.oop5.traits.php

@theseer theseer added the Bug label Aug 25, 2017
@theseer theseer self-assigned this Aug 25, 2017
@theseer theseer closed this as completed in e7b229a Jan 8, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants