Quantcast
Channel: Issues for Drupal core
Viewing all articles
Browse latest Browse all 292847

Allow NULL default values in @Plugin annotations

$
0
0

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

Reference: https://www.drupal.org/core/beta-changes
Issue categoryBug because forbids the using of NULL in annotation defaults even if Doctrine permits that.
Issue priorityNot critical because PHP is not strictly typed.
DisruptionNo disruption

Viewing all articles
Browse latest Browse all 292847

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>