为什么PHP不允许声明静态闭包属性?

时间:2019-03-01 14:09:01

标签: php properties static closures default-value

当我在类的属性中设置闭包时,我想实现一种机制,稍后将使用此闭包设置标头内容。 enter image description here

有没有办法实现这种行为?

0 个答案:

没有答案
相关问题