Skip to content

Commit

Permalink
Add type declarations
Browse files Browse the repository at this point in the history
  • Loading branch information
campbell-m committed Jul 29, 2024
1 parent cb44871 commit 306ccb8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion web/lib/MRBS/Form/ElementInputCheckbox.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ public function __construct()
}


public function setChecked($checked=true)
public function setChecked($checked=true): ElementInputCheckbox
{
if ($checked)
{
Expand Down
2 changes: 1 addition & 1 deletion web/lib/MRBS/Form/ElementInputDatalist.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public function __construct()
}


public function addDatalistOptions(array $options, $associative=null)
public function addDatalistOptions(array $options, $associative=null): ElementInputDatalist
{
// Put a <select> wrapper around the options so that browsers that don't
// support <datalist> will still have the options in their DOM and then
Expand Down

0 comments on commit 306ccb8

Please sign in to comment.