根据 PSR-12,必须使用类型关键字的缩写,即 bool 而不是 boolean、int 而不是 integer等。
bool
boolean
int
integer
有关详细信息,请参阅 Keywords and Types (php-fig.org)。