Author: bschussek
Date: 2010-01-14 17:41:04 +0100 (Thu, 14 Jan 2010)
New Revision: 26642

Modified:
   tools/lime/branches/2.0/lib/tester/LimeTesterArray.php
Log:
[lime] Fixed: Keys are compared using type-safe comparison when dumping an 
excerpt in LimeTesterArray

Modified: tools/lime/branches/2.0/lib/tester/LimeTesterArray.php
===================================================================
--- tools/lime/branches/2.0/lib/tester/LimeTesterArray.php      2010-01-14 
16:21:07 UTC (rev 26641)
+++ tools/lime/branches/2.0/lib/tester/LimeTesterArray.php      2010-01-14 
16:41:04 UTC (rev 26642)
@@ -215,12 +215,12 @@
 
       foreach ($this->value as $k => $v)
       {
-        if ((is_null($key) || $key != $k) && !$truncated)
+        if ((is_null($key) || $key !== $k) && !$truncated)
         {
           $result .= "  ...\n";
           $truncated = true;
         }
-        else if ($k == $key)
+        else if ($k === $key)
         {
           $value = is_null($value) ? $v : $value;
           $result .= sprintf("  %s => %s,\n", var_export($k, true), 
$this->indent($value));

-- 
You received this message because you are subscribed to the Google Groups 
"symfony SVN" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/symfony-svn?hl=en.


Reply via email to