Parses a WHOLE PHP-serialized scalar, which is what a key_value.value holds.
Not a general unserializer and not serializedInt()
from src/cron.js: that one finds a key INSIDE a serialized array (config blobs),
this one decodes the entire cell (i:11201;, b:1;, s:3:"abc";). Both exist
because Drupal stores config as an array and state as a bare scalar.
Returns null for anything it does not recognise, including a serialized array or
object, so every caller's gate refuses rather than coercing. That is the rule this
project has paid for eight times: unknown beats incorrect.
Parses a WHOLE PHP-serialized scalar, which is what a
key_value.valueholds.Not a general unserializer and not
serializedInt()from src/cron.js: that one finds a key INSIDE a serialized array (config blobs), this one decodes the entire cell (i:11201;,b:1;,s:3:"abc";). Both exist because Drupal stores config as an array and state as a bare scalar.Returns null for anything it does not recognise, including a serialized array or object, so every caller's gate refuses rather than coercing. That is the rule this project has paid for eight times: unknown beats incorrect.