Commit 00e4f785 authored by gdd's avatar gdd

Expanded the comment on ->get() to be more explicit about string conversions

parent 0810f57d
......@@ -68,6 +68,14 @@ public function isOverridden($key) {
*
* If no key is specified, then the entire data array is returned.
*
* Note that unlike variable_get(), the config system does not maintain
* type information, and everything saved into it gets cast to a string.
* In most cases this is not an issue, however it can cause tricky problems
* with booleans, which get cast to "1" (TRUE) or "" (FALSE). In particular,
* code relying on === or !== will no longer function properly.
*
* @see http://php.net/manual/en/language.operators.comparison.php.
*
* @return
* The data that was requested.
*/
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment