Why the Callable type cannot be used as a property type?

前端 未结 0 563
忘掉有多难
忘掉有多难 2021-01-30 03:14

As of PHP 7.4, we can use Typed properties. But I don\'t understand why the Callable type is not allowed in class properties.

class Foo {
    public          


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题