Back

I was writing out a method today that accepted an array of items as a parameter. I always try to type the array using something like: `MyObject[]`. That got me thinking about what type I should use though? Do you use `array`, `iterable`, or `Collection` if you're in the Laravel world?

2

488

In response to @MrPunyapal

Just saved the thread to Readwise and will read soon, thanks!

231

  • No matching results...
  • Searching...

/ 1000