PHP: Class constants in type declerations of input paramaters

后端 未结 0 508
攒了一身酷
攒了一身酷 2020-12-10 18:13

For a custom logger I want to force the caller to pass a valid class constant defined in Psr\\Log\\LogLevel.

This class is defined like:

n         


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