phalcon-swoole
phalcon-swoole copied to clipboard
run example, report error ?
PHP Fatal error: Class PhalconSwoole\Request contains 4 abstract methods and must therefore be declared abstract or implement the remaining methods (Phalcon\Http\RequestInterface::getPort, Phalcon\Http\RequestInterface::isPurge, Phalcon\Http\RequestInterface::isTrace, ...) in /opt/app/vendor/HessianZ/phalcon-swoole/src/PhalconSwoole/Request.php on line 14
You must implement abstract method. Add this on vendor/HessianZ/phalcon-swoole/src/PhalconSwoole/Request.php
public function getPort() {
return $this->request->header['port'];
}
public function isPurge() {
return $this->isMethod('PURGE');
}
public function isTrace() {
return $this->isMethod('TRACE');
}
public function isConnect() {
return $this->isMethod('CONNECT');
}