add feature comment
All checks were successful
ci/woodpecker/push/code-style Pipeline was successful
ci/woodpecker/push/functional-tests/1 Pipeline was successful
ci/woodpecker/push/functional-tests/2 Pipeline was successful
ci/woodpecker/push/functional-tests/3 Pipeline was successful
ci/woodpecker/push/functional-tests/4 Pipeline was successful
All checks were successful
ci/woodpecker/push/code-style Pipeline was successful
ci/woodpecker/push/functional-tests/1 Pipeline was successful
ci/woodpecker/push/functional-tests/2 Pipeline was successful
ci/woodpecker/push/functional-tests/3 Pipeline was successful
ci/woodpecker/push/functional-tests/4 Pipeline was successful
This commit is contained in:
parent
3b64e5b87b
commit
1f5b491d5a
1 changed files with 1 additions and 0 deletions
|
@ -57,6 +57,7 @@ class SettingsValidator extends AbstractValidator
|
||||||
{
|
{
|
||||||
$validations = $this->validations;
|
$validations = $this->validations;
|
||||||
|
|
||||||
|
// TODO: feature idea - we could extend the library to automatically be part of the base conjunction validator
|
||||||
$name = $this->options['name'] !== '' ? $this->options['name'] : TypeHandling::getTypeForValue($value);
|
$name = $this->options['name'] !== '' ? $this->options['name'] : TypeHandling::getTypeForValue($value);
|
||||||
if (!isset($validations[$name])) {
|
if (!isset($validations[$name])) {
|
||||||
throw new InvalidValidationOptionsException(
|
throw new InvalidValidationOptionsException(
|
||||||
|
|
Loading…
Reference in a new issue