summaryrefslogtreecommitdiff
path: root/framework/Collections/TList.php
diff options
context:
space:
mode:
authorjavalizard <>2010-04-17 05:45:36 +0000
committerjavalizard <>2010-04-17 05:45:36 +0000
commit98c48b76b2fdf4b99c9fad1631e52d027b965be4 (patch)
tree38d9971e4231a882d2fc59c53af9bb89dda2cd74 /framework/Collections/TList.php
parent34fb3ab1cbceb2e739578398748ded5524c46ad2 (diff)
Got the return value nailed down for TList::InsertBefore and TList::insertAfter using the unit test.
Diffstat (limited to 'framework/Collections/TList.php')
-rw-r--r--framework/Collections/TList.php4
1 files changed, 2 insertions, 2 deletions
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;
}
/**