Skip to content
This repository has been archived by the owner on Sep 24, 2020. It is now read-only.

Trait renames #248

Open
ddmler opened this issue Oct 12, 2016 · 2 comments
Open

Trait renames #248

ddmler opened this issue Oct 12, 2016 · 2 comments

Comments

@ddmler
Copy link
Collaborator

ddmler commented Oct 12, 2016

Notice: Static method defaultMetadata() does not exist in self scope in ./src/Analyzer/Pass/Expression/ArrayShortDefinition.php on 56 [undefined-scall]

So something is not right with trait static methods or the self scope existence check.

@ddmler ddmler added the bug label Oct 12, 2016
@ddmler
Copy link
Collaborator Author

ddmler commented Oct 12, 2016

I just figured out that this was a trait adaptation with rename. So that's what is missing here.

@ddmler ddmler changed the title [Bug] Trait static methods Trait renames Oct 12, 2016
@ovr
Copy link
Owner

ovr commented Oct 14, 2016

This is caused becase

DefaultMetadataPassTrait::getMetadata as defaultMetadata;

Supported:

use DefaultMetadataPassTrait {
    getMetadata as defaultMetadata;
}

Unsupported:

use DefaultMetadataPassTrait {
    DefaultMetadataPassTrait::getMetadata as defaultMetadata;
}

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants