mirror of
https://github.com/flarum/core.git
synced 2025-08-05 07:57:46 +02:00
fix(regression): newCollection
accepts collections
Signed-off-by: Sami Mazouz <sychocouldy@gmail.com>
This commit is contained in:
@@ -256,7 +256,10 @@ abstract class AbstractModel extends Eloquent
|
||||
return $result;
|
||||
}
|
||||
|
||||
public function newCollection(array $models = [])
|
||||
/**
|
||||
* @param Collection|array $models
|
||||
*/
|
||||
public function newCollection($models = [])
|
||||
{
|
||||
return new Collection($models);
|
||||
}
|
||||
|
Reference in New Issue
Block a user