Skip to content
Snippets Groups Projects
Commit 5312cb2b authored by Christian Kuhn's avatar Christian Kuhn Committed by Susanne Moog
Browse files

[TASK] Specific exception in ArrayUtility::removeByPath()

Similar to getValueByPath(), removeByPath() now throws
a specific exception if the path to remove does not
exist in given array to avoid catching global \RuntimeException'
in consuming code.
The same "MissingArrayPathException" is used here since
both cases have identical semantic.

Change-Id: I69447c47d24e28110cf03929ea5ed28cf5e43024
Resolves: #83636
Related: #83615
Releases: master
Reviewed-on: https://review.typo3.org/55424


Tested-by: default avatarTYPO3com <no-reply@typo3.com>
Reviewed-by: default avatarReiner Teubner <reiner.teubner@me.com>
Reviewed-by: default avatarHelmut Hummel <typo3@helhum.io>
Tested-by: default avatarHelmut Hummel <typo3@helhum.io>
Reviewed-by: default avatarSusanne Moog <susanne.moog@typo3.org>
Tested-by: default avatarSusanne Moog <susanne.moog@typo3.org>
parent 8c36fd06
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