Analysis result

Scanned at : 2020-06-05
Analyzed by : Phan PHP 8.0

Your PHP Code Snippet

            
<?php
trait T1 {
    function func() {}
}

trait T2 {
    function func() {}
}

class MaClass {
    use T1, T2 {
        func as otherFunc;
    }

    function func() {}
}
            
        

Errors: 0

Warning: 1

Severity Type Message Location
5 issue UndefError PhanAmbiguousTraitAliasSource Trait alias otherFunc has an ambiguous source method func with more than one possible source trait. Possibilities: [\T1, \T2] Line 12, column 0