Skip to content

Commit

Permalink
Add type declaration
Browse files Browse the repository at this point in the history
  • Loading branch information
campbell-m committed Oct 28, 2024
1 parent 22c69e2 commit d4c8443
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web/lib/MRBS/Form/ElementFieldset.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public function __construct()
// (b) another element, or
// (c) a string
// If it is (b) or (c) then it is wrapped inside a Legend element.
public function addLegend($legend)
public function addLegend($legend) : ElementFieldset
{
if (is_object($legend) &&
(__NAMESPACE__ . "\\ElementLegend" == get_class($legend)))
Expand Down

0 comments on commit d4c8443

Please sign in to comment.