Skip to content

Commit 38c4e29

Browse files
authored
Merge pull request #7 from infinityloop-dev/attribute_support
ResultObject - removed typehint from Id
2 parents 743e5fa + 540f622 commit 38c4e29

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Form/ResultObject.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,20 +16,20 @@
1616

1717
class ResultObject implements \JsonSerializable
1818
{
19-
private int $id;
19+
private $id;
2020
private string $text;
2121
private ?string $title = null;
2222
private bool $disabled;
2323

24-
public function __construct(int $id, string $text, ?string $title = null, bool $disabled = false)
24+
public function __construct($id, string $text, ?string $title = null, bool $disabled = false)
2525
{
2626
$this->id = $id;
2727
$this->text = $text;
2828
$this->title = $title;
2929
$this->disabled = $disabled;
3030
}
3131

32-
public function getId() : int
32+
public function getId()
3333
{
3434
return $this->id;
3535
}

0 commit comments

Comments
 (0)