mirror of
https://github.com/flarum/core.git
synced 2025-10-12 15:34:26 +02:00
Casting an object to an array does not have the intended effect of wrapping the object in an array. Instead we need to explicitly check if the returned value is an array or not.