How to replace an array in Settings.yaml?

Hi,

in development context i tried to set exceptionalErrors using the following syntax:

TYPO3:
  Flow:
    error:
      errorHandler:
        exceptionalErrors: ['%E_USER_ERROR%', '%E_RECOVERABLE_ERROR%']

But the given exceptionalErrors get’s just merged with the default development config

exceptionalErrors: ['%E_USER_ERROR%', '%E_RECOVERABLE_ERROR%', '%E_WARNING%', '%E_NOTICE%', '%E_USER_WARNING%', '%E_USER_NOTICE%', '%E_STRICT%']

which is much bigger - so the merge results in the same array as the default config.

Temporarily i solved it by using

        exceptionalErrors: ['%E_USER_ERROR%', '%E_RECOVERABLE_ERROR%', '%E_USER_ERROR%', '%E_RECOVERABLE_ERROR%', '%E_USER_ERROR%', '%E_RECOVERABLE_ERROR%']

So, how can i replace exceptionalErrors configuration?

Thanks

Hey,

actually, it is currently not easily possible to override these lists when you want to shrink them – That’s why in many parts of the Neos and Flow configuration, we are using named keys instead.

You could try:

exceptionalErrors: [...., NULL, NULL, NULL]

I am not 100% sure this works (and certainly is a nasty workaround) :wink: Maybe somebody else of the team has an idea.

All the best,
Sebastian

Just as a note: Your solution seems working.