阅读背景:

我什么时候应该在PHPDoc类型提示和docblocks中使用NULL?

来源:互联网 

I am confused about when to use the null as a type when describing variables with PHPDoc. Are type hints supposed to describe hopes and expectations for external callers to anticipate and comply with, or are they supposed to document all possible types of the variable even if the hope is it will be one very specific type in practice? as a t




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: