Unsupported array found, maybe later add a call-backable class here, for now
authorRoland Häder <roland@mxchange.org>
Tue, 30 May 2017 11:51:09 +0000 (13:51 +0200)
committerRoland Häder <roland@mxchange.org>
Tue, 30 May 2017 11:51:09 +0000 (13:51 +0200)
at least the array keys are taken into final hash.

Signed-off-by: Roland Häder <roland@mxchange.org>
framework/main/classes/lists/class_BaseList.php

index 3c728320b080662de720cc3ec540afe627925be4..df6e7c08fe5d50a138b2bcbdb4058aa13e26eebb 100644 (file)
@@ -312,8 +312,8 @@ class BaseList extends BaseFrameworkSystem implements IteratorAggregate, Countab
                        // Unsupported type detected
                        self::createDebugInstance(__CLASS__, __LINE__)->debugOutput('BASE-LIST[' . __METHOD__ . ':' . __LINE__ . ']: Entry type ' . gettype($entry) . ' is unsupported.');
 
-                       // @TODO Extend this somehow?
-                       $entry2 = gettype($entry);
+                       // At least take all keys from array
+                       $entry2 = gettype($entry) . ':' . implode(':', array_keys($entry));
                }
 
                // Construct string which we shall hash