File tree Expand file tree Collapse file tree 2 files changed +8
-9
lines changed Expand file tree Collapse file tree 2 files changed +8
-9
lines changed Original file line number Diff line number Diff line change 1+ ## v1.1.2 (08-07-2019)
2+
3+ ### Bug fixes
4+ - Use ` Collection::put() ` instead of ` Collection::replace() ` to maintain backwards compatibility.
5+
16## v1.1.1 (08-07-2019)
27
38### Enhancements
Original file line number Diff line number Diff line change 290290 ! is_numeric ($ image ) &&
291291 $ image = Util::field ($ image )
292292 ) {
293- $ expression = $ expression ->replace ([
294- 0 => is_array ($ image ) && ! empty ($ image ['id ' ]) ? $ image ['id ' ] : $ image
295- ]);
293+ $ expression = $ expression ->put (0 , is_array ($ image ) && ! empty ($ image ['id ' ]) ? $ image ['id ' ] : $ image );
296294 }
297295
298296 if (! empty ($ expression ->get (3 ))) {
299- $ expression = $ expression ->replace ([
300- 2 => Util::clean ($ expression ->slice (2 )->all ())
301- ]);
297+ $ expression = $ expression ->put (2 , Util::clean ($ expression ->slice (2 )->all ()));
302298 }
303299
304300 if (! empty ($ expression ->get (2 )) && ! Util::isArray ($ expression ->get (2 ))) {
305- $ expression = $ expression ->replace ([
306- 2 => Util::toString (['alt ' => $ expression ->get (2 )])
307- ]);
301+ $ expression = $ expression ->put (2 , Util::toString (['alt ' => $ expression ->get (2 )]));
308302 }
309303
310304 if ($ expression ->get (1 )) {
You can’t perform that action at this time.
0 commit comments