1
0
Fork 0
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:
Robin Appelman 2020-11-28 23:37:02 +01:00
commit 3f9e613e77
34 changed files with 287 additions and 309 deletions

View file

@ -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'],