AbstractCollection->pluck() should always return collection when $collectionOnEmpty=true

  • Thread starter Thread starter Rasmus Vind
  • Start date Start date

Rasmus Vind

Guest
Member
I just had a case where I did $entity->TagRelations->pluckNamed('Tag', 'tag_id')->toArray().

In rare circumstances I would get a "could not call toArray() on array" error.

This was puzzling as the call uses pluck() in the implementation and because Tag is uppercase, it will have $collectionOnEmpty=true so it should return a collection. That's the name of the variable.

In rare circumstances this would NOT return a collection because the Tag pointed at...

Read more
AbstractCollection->pluck() should always return collection when $collectionOnEmpty=true

free plugins
minecraft paid for free
mcmarket
mc-market
free minecraft paid plugins
free minecraft plugins
spigotmc
SpigotMC
aac free
ewg free
Minecraft Premium Plugins
ewg free download
litebans free
epicworldgenerator free
free schematics
leaked schematics minecraft
schematics
schematics leaked
schematics free
minecraft schematics free
paid minecraft schematics free
paid minecraft schematics for free
free cracked plugins
free cracked minecraft plugins
plugins
featherboard download
featherboard plugin download
antiaura download
xenforo leaked
xenforo for free
xenforo addons
 
Top