Skip to content
This repository has been archived by the owner on Dec 10, 2019. It is now read-only.

run example, report error ? #2

Open
javacty opened this issue Sep 26, 2016 · 1 comment
Open

run example, report error ? #2

javacty opened this issue Sep 26, 2016 · 1 comment

Comments

@javacty
Copy link

javacty commented Sep 26, 2016

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

@sudostryker
Copy link

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');
  }

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants