Skip to content

Commit

Permalink
cleaned up return types for getValue and argument types for testValue
Browse files Browse the repository at this point in the history
  • Loading branch information
dwilbourne committed Jul 26, 2024
1 parent bd07f19 commit 307768a
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
13 changes: 10 additions & 3 deletions src/html/attribute/AttributeInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,15 +37,22 @@ public function setTester(ValTesterInterface $tester): void;
*/
public function getTester(): ?ValTesterInterface;

/**
* testValue
* @param string|array<string> $value
* @return bool
*/
public function testValue(string|array $value): bool;

/**
* getValue
* @return string|array<string>
*/
public function getValue(): string|array;
public function getValue(): string|array|null;

/**
* setValue
* @param mixed $value
* @param string|array<string> $value
*/
public function setValue(mixed $value): void;
public function setValue(string|array $value): void;
}
2 changes: 1 addition & 1 deletion src/html/attribute/AttributeSingleValueInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,5 @@ public function setValue($value): void;
* getValue
* @return string|null
*/
public function getValue(): mixed;
public function getValue(): string|null;
}

0 comments on commit 307768a

Please sign in to comment.