原文呢:http://php.net/manual/en/functions.arguments.php#functions.arguments.type-declaration.strict Only valid typehint for boolean is bool. As per documentation boolean isn't recognized as alias of bool in typehints. Instead it is treated as class name…