File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -134,7 +134,7 @@ public function toArray()
134134 protected function collectNestedAggregations ()
135135 {
136136 $ result = [];
137- foreach ($ this ->aggregations -> all () as $ aggregation ) {
137+ foreach ($ this ->getAggregations () as $ aggregation ) {
138138 $ result = array_merge ($ result , $ aggregation ->toArray ());
139139 }
140140
Original file line number Diff line number Diff line change @@ -96,18 +96,18 @@ public function get($name)
9696 /**
9797 * Returns all builders contained.
9898 *
99- * @param string|null $name Builder name .
99+ * @param string|null $type Builder type .
100100 *
101101 * @return NamedBuilderInterface[]
102102 */
103- public function all ($ name = null )
103+ public function all ($ type = null )
104104 {
105105 return array_filter (
106106 $ this ->bag ,
107- function ($ builder ) use ($ name ) {
107+ function ($ builder ) use ($ type ) {
108108 /** @var NamedBuilderInterface $builder */
109109
110- return $ name === null || $ builder ->getName () == $ name ;
110+ return $ type === null || $ builder ->getType () == $ type ;
111111 }
112112 );
113113 }
You can’t perform that action at this time.
0 commit comments