Fixed some more inspection issues

This commit is contained in:
Jan Böhmer 2023-04-15 22:05:29 +02:00
parent de96aae9a5
commit 29d1d49aca
83 changed files with 153 additions and 172 deletions

View file

@ -30,17 +30,17 @@ use JsonSerializable;
*/
final class TreeViewNode implements JsonSerializable
{
private $text;
private $href;
private $nodes;
private string $text;
private ?string $href;
private ?array $nodes;
private $state = null;
private ?TreeViewNodeState $state = null;
private $tags;
private ?array $tags;
private $id;
private ?int $id;
private $icon;
private ?string $icon;
/**
* Creates a new TreeView node with the given parameters.

View file

@ -29,17 +29,17 @@ final class TreeViewNodeState implements JsonSerializable
/**
* @var bool|null
*/
private $disabled = null;
private ?bool $disabled = null;
/**
* @var bool|null
*/
private $expanded = null;
private ?bool $expanded = null;
/**
* @var bool|null
*/
private $selected = null;
private ?bool $selected = null;
public function getDisabled(): ?bool
{