[BUGFIX] Avoid E_NOTICE reporting in ArrayUtility 32/56032/3
authorRalf Zimmermann <ralf.zimmermann@tritum.de>
Wed, 7 Mar 2018 12:08:44 +0000 (13:08 +0100)
committerAndreas Fernandez <a.fernandez@scripting-base.de>
Wed, 7 Mar 2018 15:03:37 +0000 (16:03 +0100)
In case of exception 1371758436, the dynamic exception message parts
must be converted to strings.

Releases: master
Resolves: #84161
Change-Id: Ibf3df93fef6c51945b21d6db8647419c41598e5d
Reviewed-on: https://review.typo3.org/56032
Reviewed-by: Markus Klein <markus.klein@typo3.org>
Tested-by: Markus Klein <markus.klein@typo3.org>
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Mathias Schreiber <mathias.schreiber@typo3.com>
Tested-by: Mathias Schreiber <mathias.schreiber@typo3.com>
Reviewed-by: Andreas Fernandez <a.fernandez@scripting-base.de>
Tested-by: Andreas Fernandez <a.fernandez@scripting-base.de>
typo3/sysext/core/Classes/Utility/ArrayUtility.php

index bc164a4..27a7d74 100644 (file)
@@ -329,7 +329,7 @@ class ArrayUtility
                 throw new \RuntimeException('Invalid path segment specified', 1371757720);
             }
             if (!array_key_exists($segment, $pointer)) {
-                throw new MissingArrayPathException('Segment ' . $segment . ' of path ' . $path . ' does not exist in array', 1371758436);
+                throw new MissingArrayPathException('Segment ' . $segment . ' of path ' . implode($delimiter, $path) . ' does not exist in array', 1371758436);
             }
             if ($currentDepth === $pathDepth) {
                 unset($pointer[$segment]);