What does ~ mean in the YML configuration file in Symfony 2?

SymfonyYaml

Symfony Problem Overview


What does ~ mean in the YML configuration file in Symfony 2?

For example:

NotBlank: ~

Symfony Solutions


Solution 1 - Symfony

In Yaml, ~ means null. (source)

The actual meaning in Symfony 2 depends on what you are configuring. Most likely it will mean "use defaults" or it will be used where it is needed to put a configuration key but there is nothing to actually configure for that key (as in the NotBlank example).

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionTuong LeView Question on Stackoverflow
Solution 1 - SymfonyAldo StracquadanioView Answer on Stackoverflow