summaryrefslogtreecommitdiff
path: root/framework/Collections/TList.php
diff options
context:
space:
mode:
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;
}
/**