php bool 与 boolean 的区别 2020-04-28 编程 评论 boolean is an alias for bool, and aliases don’t work in type hints.Use the “real” name: bool 参考 https://stackoverflow.com/questions/44009037/php-bool-vs-boolean-type-hinting