Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/Form/V3/FoldersVariable.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

namespace Ingo\Form\V3;

use Horde\Util\Variables;
use Horde\Form\V3\BaseVariable;
use Horde_Variables;

Expand Down Expand Up @@ -29,7 +30,7 @@ class FoldersVariable extends BaseVariable
public $_folder;
public $newFolderSet;

public function isValid($vars, $value): bool
public function isValid(Horde_Variables|Variables $vars, $value): bool

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not necessary

{
if ($this->newFolderSet || strlen($value)) {
return true;
Expand Down
3 changes: 2 additions & 1 deletion src/Form/V3/LongemailVariable.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

namespace Ingo\Form\V3;

use Horde\Util\Variables;
use Horde\Form\V3\LongtextVariable;
use Horde_Variables;

Expand Down Expand Up @@ -31,7 +32,7 @@ class LongemailVariable extends LongtextVariable
{
/**
*/
public function isValid(Horde_Variables $vars, $value): bool
public function isValid(Horde_Variables|Variables $vars, $value): bool

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK

{
$value = trim((string) $value);

Expand Down
Loading