Skip to content

Commit

Permalink
Container::validate(): add Container to $controls param typehint
Browse files Browse the repository at this point in the history
Containers are already supported, it just was not reflected in the type hint.
  • Loading branch information
jtojnar committed Mar 21, 2024
1 parent 88c1ffb commit 0900c13
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Forms/Container.php
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ public function isValid(): bool

/**
* Performs the server side validation.
* @param Control[]|null $controls
* @param (Control|self)[]|null $controls
*/
public function validate(?array $controls = null): void
{
Expand Down

0 comments on commit 0900c13

Please sign in to comment.