Skip to content

Commit

Permalink
Tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
rotexdegba committed May 8, 2018
1 parent ab1717f commit fb260e4
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions src/BaseCollection.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,19 +69,6 @@ public function offsetGet($key) {
*/
public function offsetSet($key, $val) {

// if ($key === null) {
//
// //support for $this[] = $val; syntax
// $key = $this->count();
//
// if (!$key) {
//
// $key = 0;
// }
// }
//
// $this->collection_items[$key] = $val;

if(is_null($key) ) {

$this->collection_items[] = $val;
Expand Down

0 comments on commit fb260e4

Please sign in to comment.