phpsa
phpsa copied to clipboard
Trait renames
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.
I just figured out that this was a trait adaptation with rename. So that's what is missing here.
This is caused becase
https://github.com/ovr/phpsa/blob/9dffcdc59c58f32f0577dd50c07c71bb91053362/src/Analyzer/Pass/Expression/ArrayShortDefinition.php#L16
Supported:
use DefaultMetadataPassTrait {
getMetadata as defaultMetadata;
}
Unsupported:
use DefaultMetadataPassTrait {
DefaultMetadataPassTrait::getMetadata as defaultMetadata;
}