php-msf
php-msf copied to clipboard
Input.php get, post 属性没定义时。
$this->request->post[$index] ?? '' 改为 $this->request->post[$index] ?? null
这样更合适。因为这个值null可以再用 ??
建议提交一个PR,我们考虑一下,合适的话就直接合并。
/**
* 获取GET参数
*
* @param string $index GET参数名
* @return string
*/
public function get($index)
{
return $this->request->get[$index] ?? '';//还没~~~
}