Skip to content

Commit

Permalink
Merge pull request #7 from infinityloop-dev/attribute_support
Browse files Browse the repository at this point in the history
ResultObject - removed typehint from Id
  • Loading branch information
peldax authored Jul 24, 2020
2 parents 743e5fa + 540f622 commit 38c4e29
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Form/ResultObject.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,20 +16,20 @@

class ResultObject implements \JsonSerializable
{
private int $id;
private $id;
private string $text;
private ?string $title = null;
private bool $disabled;

public function __construct(int $id, string $text, ?string $title = null, bool $disabled = false)
public function __construct($id, string $text, ?string $title = null, bool $disabled = false)
{
$this->id = $id;
$this->text = $text;
$this->title = $title;
$this->disabled = $disabled;
}

public function getId() : int
public function getId()
{
return $this->id;
}
Expand Down

0 comments on commit 38c4e29

Please sign in to comment.