Problem/Motivation
Right now properties defined in annotations are discarding default values that are set to NULL. In other representations of data (PHP, YAML) we support NULLs. There's no reason not to support NULL while Doctrine handles NULL values.
Proposed resolution
Remove NULL filtering from \Drupal\Component\Annotation\Plugin
to allow NULL in annotation default values
Remaining tasks
None.
User interface changes
None.
API changes
Developers are able to assign NULL to annotation defaults.
Data model changes
NULL available in annotation default values.
Beta phase evaluation
Issue category | Bug because forbids the using of NULL in annotation defaults even if Doctrine permits that. |
---|---|
Issue priority | Not critical because PHP is not strictly typed. |
Disruption | No disruption |