public function setCodeLength(int $length): GA|PHPGangsta_GoogleAuthenticator { $this->_codeLength = $length; return $this; } 复制代码 报错内容: PHP Parse error: syntax error, unexpected ‘|’, expecting ‘;’ or ‘{‘ in /home/wwwroot/www.kskxs.com/src/Utils/GA.php on line 116 复制代码 php7.4.0以上才支持的用法,需要升级php版本