Skip to content

Commit

Permalink
III-1768 Mark the delete method on CategoryList as deprecated and des…
Browse files Browse the repository at this point in the history
…cribe the triggered iteration bug.
  • Loading branch information
Luc Wollants committed Jan 17, 2017
1 parent 2b0d833 commit c7f1a29
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/CultureFeed/Cdb/Data/CategoryList.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ public function add(CultureFeed_Cdb_Data_Category $category)

/**
* Delete a given category of the list.
* @deprecated Using the delete method will result in an issue when iterating,
* because the index aka position gets a gap and the iteration stops on the gap.
*/
public function delete($key)
{
Expand Down

0 comments on commit c7f1a29

Please sign in to comment.