[BUGFIX] Avoid E_NOTICE reporting in ArrayUtility 29/56029/3
authorRalf Zimmermann <ralf.zimmermann@tritum.de>
Wed, 7 Mar 2018 08:29:11 +0000 (09:29 +0100)
committerChristian Kuhn <lolli@schwarzbu.ch>
Wed, 7 Mar 2018 11:57:20 +0000 (12:57 +0100)
In case of exception 1341397869, the dynamic exception message parts
must be converted to strings.

Releases: master, 8.7
Resolves: #84156
Change-Id: I3b86758495f9481a21691feaddd6000d484e2a5e
Reviewed-on: https://review.typo3.org/56029
Reviewed-by: Markus Klein <markus.klein@typo3.org>
Tested-by: Markus Klein <markus.klein@typo3.org>
Reviewed-by: Mathias Schreiber <mathias.schreiber@typo3.com>
Tested-by: Mathias Schreiber <mathias.schreiber@typo3.com>
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
typo3/sysext/core/Classes/Utility/ArrayUtility.php

index 6a0ce7f..bc164a4 100644 (file)
@@ -197,7 +197,7 @@ class ArrayUtility
                 $value = $value[$segment];
             } else {
                 // Throw specific exception if there is no such path
-                throw new MissingArrayPathException('Segment ' . $segment . ' of path ' . $path . ' does not exist in array', 1341397869);
+                throw new MissingArrayPathException('Segment ' . $segment . ' of path ' . implode($delimiter, $path) . ' does not exist in array', 1341397869);
             }
         }
         return $value;