Problem/Motivation

deprecate non-boolean input to the default boolean config schema type and the translatable schema flag, with four numeric exceptions.

Both retain compatibility with deprecated inputs until Drupal 13.0.0.

Proposed resolution

Reject the deprecated inputs in both places.

Remove the deprecation messages, the temporary string conversions and the reader-specific fallbacks for unrecognized input.

Replace the deprecation assertions with tests for rejection.

Continue to accept native booleans and the exact values 0, 1, '0' and '1'.

Remaining tasks

Postponed on #3644386: "false" is interpreted as TRUE in boolean configuration and #3644401: [PP-1] Config schema readers disagree on translatable: 'false'.

User interface changes

None.

Introduced terminology

None.

API changes

Passing a deprecated value to ConfigBoolean::getCastedValue() or supplying one as a translatable schema flag is no longer supported.

Use native booleans in PHP and unquoted true or false in YAML.

The four numeric exceptions 0, 1, '0' and '1' remain supported.

Data model changes

None.

Release notes snippet

Drupal 13 now rejects previously deprecated non-boolean inputs such as 'false' and 'true' whether supplied as the value of a boolean configuration setting or of the translatable schema flag.

Comments

pancho created an issue.