fix typehint

This commit is contained in:
Dennis Eichhorn 2019-12-30 14:06:51 +01:00
parent 746db59438
commit e3b25ce1f4
2 changed files with 31 additions and 1 deletions

View File

@ -0,0 +1,30 @@
<?php
class FormElement
{
public string $id;
public string $form;
public string $name;
public bool $required;
public string $defaultValue;
public string $requiredValue;
public bool $autosave;
public function __construct(
string $id = '',
string $form = '',
string $name = '',
bool $required = false,
string $defaultValue = '',
string $requiredValue = '',
bool $autosave = false
) {
$this->id = $id;
$this->form = $form;
$this->name = $name;
$this->required = $required;
$this->defaultValue = $defaultValue;
$this->requiredValue = $requiredValue;
$this->autosave = $autosave;
}
}

View File

@ -62,7 +62,7 @@ class Server extends SocketAbstract
/**
* Socket application.
*
* @var SocketApplication
* @var ApplicationAbstract
* @since 1.0.0
*/
private $app = null;