meszaros-lajos-gyorgy / shovel

A PHP library for manipulating Arrays, Strings and Objects - inspired by ramda.js
0 stars 0 forks source link

A::append() should accept non-array values as the 1st parameter #8

Closed meszaros-lajos-gyorgy closed 3 years ago

meszaros-lajos-gyorgy commented 3 years ago

For example this is a perfectly valid ramda code:

var x = [2, 3];
append(1, x) // [2, 3, 4]

While A::append(1, [2, 3]) says:

Argument 1 passed to Shovel\A::append() must be of the type array, int given

meszaros-lajos-gyorgy commented 3 years ago

Fixed in https://github.com/meszaros-lajos-gyorgy/shovel/releases/tag/v2.1.2