mirror of
https://github.com/Respect/Validation.git
synced 2024-06-08 00:32:16 +02:00
707dcae65f
This commit will rename the "Optional" rule to"UndefOr" while soft deprecating the old name. It should work the same as the previous one but with a different name. It will also prefix the result ID, allowing more message customization. While working on it, I realized that the prefix "undefOr" had a typo, and it was using "undefOf" instead. I fixed that, too. Signed-off-by: Henrique Moody <henriquemoody@gmail.com>
22 lines
433 B
PHP
22 lines
433 B
PHP
<?php
|
|
|
|
/*
|
|
* Copyright (c) Alexandre Gomes Gaigalas <alganet@gmail.com>
|
|
* SPDX-License-Identifier: MIT
|
|
*/
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Respect\Validation\Test\Transformers;
|
|
|
|
use Respect\Validation\Transformers\RuleSpec;
|
|
use Respect\Validation\Transformers\Transformer;
|
|
|
|
final class StubTransformer implements Transformer
|
|
{
|
|
public function transform(RuleSpec $ruleSpec): RuleSpec
|
|
{
|
|
return $ruleSpec;
|
|
}
|
|
}
|