Skip to content

Commit

Permalink
Merge pull request #46 from SandroMiguel/feat/improve-errors-phpdoc
Browse files Browse the repository at this point in the history
feat(src/validator.php): improve phpdoc
  • Loading branch information
SandroMiguel authored Oct 21, 2024
2 parents d3cd5ab + b50eb57 commit 9210dc3
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions src/Validator.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@
* @package Verum-PHP
* @license MIT https://github.com/SandroMiguel/verum-php/blob/master/LICENSE
* @author Sandro Miguel Marques <[email protected]>
* @link https://github.com/SandroMiguel/verum-php
* @version 4.2.2 (2024-03-21)
* @version 4.2.3 (2024-10-21)
*/

declare(strict_types=1);
Expand Down Expand Up @@ -82,7 +81,7 @@ final class Validator
* ...
* ]
*
* @var array<mixed> Errors list
* @var array<string,array<string,mixed>> Errors list
*/
private $errors = [];

Expand Down Expand Up @@ -320,10 +319,7 @@ public function getFieldRules(): array
/**
* Errors messages.
*
* @return array<mixed> Returns the error messages.
*
* @version 1.0.0 (30/04/2020)
* @since Verum 1.0.0
* @return array<string,array<string,mixed>> Returns the error messages.
*/
public function getErrors(): array
{
Expand Down Expand Up @@ -449,7 +445,7 @@ private function getMultiNameFieldValues(string $fieldName): array
[$baseFieldName] = \explode('.', $fieldName);
$fieldValues = \array_filter(
$this->fieldValues,
static fn ($key) => \strpos($key, $baseFieldName) === 0,
static fn($key) => \strpos($key, $baseFieldName) === 0,
\ARRAY_FILTER_USE_KEY
);

Expand Down

0 comments on commit 9210dc3

Please sign in to comment.