mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-01-11 09:48:40 +00:00
Make use of parent
This commit is contained in:
parent
ff29e53d3c
commit
663bdca316
|
|
@ -129,10 +129,10 @@ class Header extends HeaderAbstract
|
|||
public function getStatusCode() : int
|
||||
{
|
||||
if($this->status === 0) {
|
||||
$this->status = \http_response_code();
|
||||
$this->status = (int) \http_response_code();
|
||||
}
|
||||
|
||||
return (int) $this->status;
|
||||
return parent::getStatusCode();
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user