This commit is contained in:
joyqi 2021-08-22 19:32:11 +08:00 committed by GitHub
parent c84fa39c4f
commit 09a320bf5d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -44,13 +44,13 @@ class Typecho_Router
*
* @access public
*
* @param string $pathInfo 全路径
* @param string|null $pathInfo 全路径
* @param mixed $parameter 输入参数
*
* @return mixed
* @throws Exception
*/
public static function match(string $pathInfo, $parameter = null)
public static function match(?string $pathInfo, $parameter = null)
{
foreach (self::$_routingTable as $key => $route) {
if (preg_match($route['regx'], $pathInfo, $matches)) {