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 3c72832..df6e7c0 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.');
 
                        // 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
                }
 
                // Construct string which we shall hash