diff options
author | javalizard <> | 2010-04-17 05:45:36 +0000 |
---|---|---|
committer | javalizard <> | 2010-04-17 05:45:36 +0000 |
commit | 98c48b76b2fdf4b99c9fad1631e52d027b965be4 (patch) | |
tree | 38d9971e4231a882d2fc59c53af9bb89dda2cd74 /framework/Collections | |
parent | 34fb3ab1cbceb2e739578398748ded5524c46ad2 (diff) |
Got the return value nailed down for TList::InsertBefore and TList::insertAfter using the unit test.
Diffstat (limited to 'framework/Collections')
-rw-r--r-- | framework/Collections/TList.php | 4 |
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;
}
/**
|