Skip to content

Commit 5d4c8f1

Browse files
committed
updated reqs
1 parent 6b6396e commit 5d4c8f1

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
}
3636
},
3737
"require": {
38-
"php": "^7.4",
38+
"php": "^7.4 || ^8.0",
3939
"flightphp/core": "^3.16"
4040
}
4141
}

tests/AsyncBridgeTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -93,11 +93,11 @@ public function end($content)
9393
$app->json(['test' => 'test']);
9494
});
9595
$Bridge = new \flight\AsyncBridge($app);
96-
96+
ob_start();
9797
$Response = $Bridge->processRequest($Swoole_Async_Request, $Swoole_Async_Response);
98-
98+
ob_end_clean();
9999
$this->assertInstanceOf(\flight\AsyncResponseInterface::class, $Response);
100-
$this->assertEquals('application/json; charset=utf-8', $Response->getResponse()->header['content-type']);
100+
$this->assertEquals('application/json', $Response->getResponse()->header['content-type']);
101101
$this->assertEquals(200, $Response->getResponse()->status);
102102
$this->assertEquals('{"test":"test"}', $Response->getResponse()->content);
103103
}

0 commit comments

Comments
 (0)