Skip to content

Commit 2f82c8c

Browse files
committed
fix header depreciation with 8.1
1 parent 15e19da commit 2f82c8c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Ubiquity/utils/http/foundation/WorkermanHttp.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
* This class is part of Ubiquity
1111
*
1212
* @author jcheron <[email protected]>
13-
* @version 1.0.0
13+
* @version 1.0.1
1414
*/
1515
class WorkermanHttp extends AbstractHttp {
1616

@@ -28,9 +28,9 @@ public function setDatas($datas) {
2828
return $this->datas;
2929
}
3030

31-
public function header($key, $value, bool $replace = true, int $http_response_code = null) {
31+
public function header($key, $value, bool $replace = true, int $http_response_code = 0) {
3232
$this->headers[$key] = $value;
33-
if ($http_response_code != null) {
33+
if ($http_response_code != 0) {
3434
$this->responseCode = $http_response_code;
3535
}
3636
Http::header($key . ':' . $value, $replace, $http_response_code);

0 commit comments

Comments
 (0)