call_user_func($callable)
支持但 $callable()
不支持的 callable 的已弃用用法。
从 PHP 8.2 开始,已弃用以下 callable:
"self::method"
"parent::method"
"static::method"
["self", "method"]
["parent", "method"]
["static", "method"]
["Foo", "Bar::method"]
[new Foo, "Bar::method"]
有关详细信息,请参阅 Deprecate partially supported callables (php.net)。