mirror of
https://codeberg.org/demostf/api.git
synced 2026-06-03 18:04:08 +02:00
stricter cs
This commit is contained in:
parent
309ae17036
commit
d9a843ecd6
54 changed files with 346 additions and 168 deletions
|
|
@ -1,9 +1,11 @@
|
|||
<?php declare(strict_types=1);
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Demostf\API\Demo;
|
||||
|
||||
/**
|
||||
* HL2 demo metadata
|
||||
* HL2 demo metadata.
|
||||
*/
|
||||
class Header {
|
||||
/**
|
||||
|
|
@ -132,7 +134,7 @@ class Header {
|
|||
}
|
||||
|
||||
public static function fromArray(array $info) {
|
||||
return new Header(
|
||||
return new self(
|
||||
$info['type'],
|
||||
$info['version'],
|
||||
$info['protocol'],
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue