$config = config('foo')->set('foo', NULL);

var_dump($config->get('foo')); // array()

Apparently, NULL is not a scalar.

Files: 
CommentFileSizeAuthor
#2 drupal8.config-null.1.patch1.99 KBsun
PASSED: [[SimpleTest]]: [MySQL] 42,067 pass(es). View
drupal8.config-null.0.patch819 bytessun
PASSED: [[SimpleTest]]: [MySQL] 42,071 pass(es). View

Comments

beejeebus’s picture

sun’s picture

FileSize
1.99 KB
PASSED: [[SimpleTest]]: [MySQL] 42,067 pass(es). View

Plus test.

sun’s picture

Priority: Critical » Major

Sorry, hit the wrong option there.

beejeebus’s picture

Status: Needs review » Reviewed & tested by the community

simple patch with a test, RTBC.

chx’s picture

xjm’s picture

Wow, special.

catch’s picture

Status: Reviewed & tested by the community » Fixed

That's a... shame. Committed/pushed to 8.x.

Automatically closed -- issue fixed for 2 weeks with no activity.