thephpleague / factory-muffin

Enables the rapid creation of objects for testing
https://factory-muffin.thephpleague.com/
MIT License
531 stars 72 forks source link

pass by reference in Arr class #310

Closed scottrobertson closed 10 years ago

scottrobertson commented 10 years ago

Any reason we are passing array by reference in the Arr class. PHP only duplicates the array in memory if you modify the array from what I remember.

GrahamCampbell commented 10 years ago

Yeh. We're modifying the array, in the remove function, so I thought I'd just make them all force pass by reference for consistency.

scottrobertson commented 10 years ago

Ah right ok, no worries.