We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d7b01ac commit e52b607Copy full SHA for e52b607
CHANGELOG.md
@@ -1,6 +1,11 @@
1
Change Log
2
==========
3
4
+2019-08-05 - 3.2.1
5
+------------------
6
+
7
+ * Fix missing constructor on `SimpleCollection`
8
9
2019-08-05 - 3.2.0
10
------------------
11
src/SimpleCollection.php
@@ -5,6 +5,7 @@
namespace Somnambulist\Collection;
use Somnambulist\Collection\Behaviours;
+use Somnambulist\Collection\Utils\Value;
/**
* Class SimpleCollection
@@ -48,4 +49,13 @@ class SimpleCollection extends AbstractCollection
48
49
use Behaviours\Export\ExportToArray;
50
use Behaviours\Export\ExportToJson;
51
52
+ /**
53
+ * Constructor.
54
+ *
55
+ * @param mixed $items
56
+ */
57
+ public function __construct($items = [])
58
+ {
59
+ $this->items = Value::toArray($items);
60
+ }
61
}
0 commit comments