Psalm: Support parent:: syntax in callable arrays

Created on 11 Jun 2018  路  3Comments  路  Source: vimeo/psalm

https://getpsalm.org/r/ba78db74dd

class A {
    public static function who() {
        echo "A\n";
    }
}

class B extends A {
    public static function who() {
        echo "B\n";
    }
}

call_user_func(['B', 'parent::who']);
bug wontfix

All 3 comments

That's horrible, has it been seen used in the wild?

Yeah, two lines in WordPress's codebase

Not going to support this, I don't think anybody cares

Was this page helpful?
0 / 5 - 0 ratings