filter%5Bfoo%5D%5B%5D=1&filter%5Bfoo%5D%5B%5D=2), the method trying to fix duplicate keys without brackets added another array level (like filter[foo][] to filter[foo][][]). This is fixed with this release.foo=bar&foo=baz) are now also interpreted as array (like foo[]=bar&foo[]=baz). This is considered a bugfix because:
foo=bar&foo=baz became foo=baz, which is most likely unwanted behavior.[]), but if such a query is written without the brackets, the intention is either that it should be an array, or it's a mistake. If it is a mistake, the probability to notice it is higher, when the result contains all values instead of only the last one.Query from string, and it contains empty key value parts, like &foo=bar, foo=bar& or foo=bar&&baz=quz, the unnecessary & characters are removed in the string version now. For example, &foo=bar previously lead to $instance->toString() returning &foo=bar and now it returns foo=bar.Query class, no matter if the instance was created from string or array, the library now first converts incoming values back and forth. So, when an instance is created from string, it first converts it to an array and then again back to a string and vice versa when an instance is created from an array. Some Examples being fixed by this:
foo=bar :
+++foo=bar++, toArray(): ['foo' => 'bar '].foo=bar++, toArray(): ['foo' => 'bar ']foo[bar] [baz]=bar
foo%5Bbar%5D+%5Bbaz%5D=bar, toArray(): ['foo' => ['bar' => 'bar']].foo%5Bbar%5D=bar, toArray(): '[foo' => ['bar' => 'bar']].foo[bar][baz][]=bar&foo[bar][baz][]=foo
foo%5Bbar%5D%5Bbaz%5D%5B%5D=bar&foo%5Bbar%5D%5Bbaz%5D%5B%5D=foo, toArray(): ['foo' => ['bar' => ['baz' => ['bar', 'foo']]]].foo%5Bbar%5D%5Bbaz%5D%5B0%5D=bar&foo%5Bbar%5D%5Bbaz%5D%5B1%5D=foo, toArray(): ['foo' => ['bar' => ['baz' => ['bar', 'foo']]]].option
option, toArray(): ['option' => '']option=, toArray(): ['option' => '']foo=bar=bar==
foo=bar=bar==, toArray(): [['foo' => 'bar=bar==']foo=bar%3Dbar%3D%3D, toArray(): [['foo' => 'bar=bar==']sum=10%5c2%3d5
sum=10%5c2%3d5, toArray(): [['sum' => '10\\2=5']sum=10%5C2%3D5, toArray(): [['sum' => '10\\2=5']foo=%20+bar
foo=%20+bar, toArray(): ['foo' => ' bar']foo=++bar, toArray(): ['foo' => ' bar']How can I help you explore Laravel packages today?