Skip to content

Commit

Permalink
validation is now a const on the class
Browse files Browse the repository at this point in the history
  • Loading branch information
dcarbone committed Apr 15, 2024
1 parent 15576c4 commit 26aa118
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion template/types/validation/field_map.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@

* @var array
*/
private static array $_validationRules = [<?php foreach ($properties as $property) :
private const _VALIDATION_RULES = [<?php foreach ($properties as $property) :
$validationMap = $property->buildValidationMap();
if ([] !== $validationMap) : ?>

Expand Down
2 changes: 1 addition & 1 deletion template/types/validation/methods.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
*/
public function _getValidationRules(): array
{
return self::$_validationRules;
return self::_VALIDATION_RULES;
}

/**
Expand Down

0 comments on commit 26aa118

Please sign in to comment.