The setting used in $wgCodeMirrorLineNumberingNamespaces will not allow users to set an empty list or exclude the default. [ 10 ] will then always be part of the array when retrieved from the configuration. Except wgCodeMirrorLineNumberingNamespaces is set to null.
See T225753: Default configuration parameter settings get merged with new settings
First reported in https://www.mediawiki.org/wiki/Topic:Wenwtaeuex0xyuax