Skip to content

Commit

Permalink
Added phpdoc (#3544)
Browse files Browse the repository at this point in the history
  • Loading branch information
staabm committed Apr 18, 2020
1 parent fadf693 commit dfae9ba
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion redaxo/src/core/lib/util/validator.php
Expand Up @@ -11,7 +11,9 @@ class rex_validator
{
use rex_factory_trait;

/** @psalm-var list<array{string, string|null, mixed}> */
private $types = [];
/** @var string|null */
private $message;

protected function __construct()
Expand Down Expand Up @@ -81,7 +83,7 @@ public function isValid($value)
/**
* Returns the message.
*
* @return string[]
* @return string|null
*/
public function getMessage()
{
Expand Down

0 comments on commit dfae9ba

Please sign in to comment.