Add PHP8 compatibility to v1.x (#177)

* Add PHP8 compatible requirements
* Readd DNS to allow resolving local shared domains
This commit is contained in:
Marcel Pociot
2021-01-14 13:20:59 +01:00
committed by GitHub
parent ff232d9ef4
commit 2934731c7a
6 changed files with 2417 additions and 1564 deletions

View File

@@ -135,7 +135,7 @@ class TunnelTest extends TestCase
protected function createTestHttpServer()
{
$server = new Server(function (ServerRequestInterface $request) {
$server = new Server($this->loop, function (ServerRequestInterface $request) {
return new Response(200, ['Content-Type' => 'text/plain'], 'Hello World!');
});