Valinor/tests
Romain Canon a97b406154 feat: introduce helper class MessagesFlattener
Will recursively flatten messages of a node and all its children.

This helper can for instance be used when errors occurred during a
mapping to flatten all caught errors into a basic array of string that
can then easily be used to inform the user of what is wrong.

```
try {
    // …
} catch(MappingError $error) {
    $messages = (new MessagesFlattener($error->node()))->errors();

    foreach ($messages as $message) {
        echo $message;
    }
}
```
2022-01-06 14:11:42 +01:00
..
Fake feat!: wrap node messages in proper class 2022-01-06 14:11:42 +01:00
Fixture fix: handle nested attributes compilation 2021-12-27 20:57:38 +01:00
Functional fix: handle nested attributes compilation 2021-12-27 20:57:38 +01:00
Integration feat!: wrap node messages in proper class 2022-01-06 14:11:42 +01:00
Traits feat: initial release 2021-11-28 18:21:56 +01:00
Unit feat: introduce helper class MessagesFlattener 2022-01-06 14:11:42 +01:00