php bool 与 boolean 的区别

分类: 编程 标签: php

boolean is an alias for bool, and aliases don't work in type hints.
Use the "real" name: bool

参考