Hi, I’m confused by the syntax, when I read it, I think to myself “I know this, this is just a method call… oh wait, it’s actually a callable”. It really makes my head hurt.
Also, static analysers already have to reason about current code, so PHPStan (and Psalm probably too) already supports referencing to callables as strings (global functions) and arrays (methods): $name = 'date'; $name(1); // Parameter #1 $format of callable 'date' expects string, int given.