变更
This commit is contained in:
@@ -65,6 +65,17 @@ class Request implements ServerRequestInterface
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @param string $name
|
||||
* @return mixed
|
||||
*/
|
||||
public function __get(string $name): mixed
|
||||
{
|
||||
// TODO: Implement __get() method.
|
||||
return $this->__call__('get' . ucfirst($name));
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Retrieves the HTTP protocol version as a string.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user