mirror of
https://github.com/Respect/Validation.git
synced 2026-03-15 14:55:44 +01:00
The array_reduce in isVisible() used `true` as its initial value with an `||` reducer, meaning it always returned `true` when siblings existed regardless of their actual visibility. This caused unnecessary nesting in full messages by showing single-child wrapper nodes that should have been collapsed. Replace array_reduce with a foreach loop starting from `false`, which also enables early return on the first visible sibling. |
||
|---|---|---|
| .. | ||
| Issues | ||
| Readme | ||
| Transformers | ||
| ValidatorBuilder | ||
| Validators | ||
| AssertWithKeysTest.php | ||
| AssertWithPropertiesTest.php | ||
| AssertWithTemplatesTest.php | ||
| DoNotRelyOnNestedValidationExceptionInterfaceForCheckTest.php | ||
| FormatterModifierTest.php | ||
| GetFullMessageShouldIncludeAllValidationMessagesInAChainTest.php | ||
| GetMessagesShouldIncludeAllValidationMessagesInAChainTest.php | ||
| GetMessagesTest.php | ||
| GetMessagesWithReplacementsTest.php | ||
| HandlingNamesTest.php | ||
| KeysAsValidatorNamesTest.php | ||
| NotShouldWorkWithBuilderTestTest.php | ||
| NotWithoutRecursionTest.php | ||
| NotWithRecursionTest.php | ||
| ResultQueryTest.php | ||
| SerializableTest.php | ||
| SetTemplateWithMultipleValidatorsShouldUseTemplateAsFullMessageHeaderTest.php | ||
| SetTemplateWithMultipleValidatorsShouldUseTemplateAsMainMessageTest.php | ||
| SetTemplateWithSingleValidatorShouldUseTemplateAsMainMessageTest.php | ||
| TranslatorTest.php | ||
| ValidationExceptionStackTraceTest.php | ||