YaLinqo icon indicating copy to clipboard operation
YaLinqo copied to clipboard

Yet Another LINQ to Objects for PHP [Simplified BSD]

Results 25 YaLinqo issues
Sort by recently updated
recently updated
newest added

Using latest "composer require athari/yalinqo", v2.4.2 ```

type:bug

``` YaLinqo\OrderedEnumerable::thenBy() expects (callable(): mixed)|null, '$v->getTitle()' given. ``` Similar to https://github.com/Athari/YaLinqo/pull/55

Code: ```php Enumerable::from($arr)->orderBy('$v->getDisplayOrder()'); ``` Error: ``` Parameter #1 $keySelector of method YaLinqo\Enumerable::orderBy() expects (callable(): mixed)|null, '$v->getDisplayOrder…' given. ```

As as follow-up to #24: the create_function has been [deprecated](http://php.net/manual/en/migration72.deprecated.php) in php 7.2. Would it be possible to update [Utils::createLambdaFromString](https://github.com/Athari/YaLinqo/blob/b73d46928ebaa6b2f46d3f1d2273ede4f6a98479/YaLinqo/Utils.php#L153) to avoid using that function ? Thanks

type:improvement

iterable is an alias for array and Traversable, which are already allowed.

Ideas for new methods to add and example implementations in other libraries. **linq.js** - _must:_ Zip, Concat, Insert, Let, Memoize, MemoizeAll, BufferWithCount, SequenceEqual, Reverse - _high:_ CascadeBreadthFirst, CascadeDepthFirst, Flatten, Scan,...

type:feature

Update ReadMe and documentation to a more sensible state: * [x] Get rid of obsolete string lambda garbage. Cast arrays to objects. Make the code pretty, not scary mess it...

type:improvement
tag:docs

Nightly is 7.4-dev these days.

Currently I have a PHP application that I do not want to autoload Linq.php for everything, but your composer.json specifies autoload files which forced the inclusion of Linq.php for everything...

type:improvement