From 98c48b76b2fdf4b99c9fad1631e52d027b965be4 Mon Sep 17 00:00:00 2001 From: javalizard <> Date: Sat, 17 Apr 2010 05:45:36 +0000 Subject: Got the return value nailed down for TList::InsertBefore and TList::insertAfter using the unit test. --- framework/Collections/TList.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'framework') diff --git a/framework/Collections/TList.php b/framework/Collections/TList.php index cc0eab6d..cfcf666a 100644 --- a/framework/Collections/TList.php +++ b/framework/Collections/TList.php @@ -257,7 +257,7 @@ class TList extends TComponent implements IteratorAggregate,ArrayAccess,Countabl $this->insertAt($index, $item); - return $this; + return $index; } /** @@ -274,7 +274,7 @@ class TList extends TComponent implements IteratorAggregate,ArrayAccess,Countabl $this->insertAt($index + 1, $item); - return $this; + return $index + 1; } /** -- cgit v1.2.3