mirror of
https://codeberg.org/demostf/api.git
synced 2026-06-03 18:04:08 +02:00
type hint all the things
This commit is contained in:
parent
28589d505d
commit
3f9e613e77
34 changed files with 287 additions and 309 deletions
|
|
@ -133,7 +133,12 @@ class Header {
|
|||
return $this->version;
|
||||
}
|
||||
|
||||
public static function fromArray(array $info) {
|
||||
/**
|
||||
* @param mixed[] $info
|
||||
*
|
||||
* @return Header
|
||||
*/
|
||||
public static function fromArray(array $info): self {
|
||||
return new self(
|
||||
$info['type'],
|
||||
$info['version'],
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue