jkoudys / immutable.php

Immutable collections, with filter, map, join, sort, slice, and other methods. Well-suited for functional programming and memory-intensive applications. Runs especially fast in PHP7.
MIT License
346 stars 20 forks source link

Add has() and unique() functions #15

Closed JarJak closed 5 years ago

JarJak commented 5 years ago

Closes #14

jkoudys commented 5 years ago

I'm fine with upping the required level on the next versions. Minor release can go to PHP5.6 (the only one still being supported), and the next major to PHP7.1. Lots in 7 that'll make this whole lib a lot cleaner. Should let us ignore all those phpunit errors on <php5.6

JarJak commented 5 years ago

@jkoudys Ok bumped PHP version in composer and travis to 5.6

JarJak commented 5 years ago

Now also fixes #12

Petah commented 5 years ago

Any plans to tag a new release after this?

jkoudys commented 5 years ago

@Petah yes I really should. I'll be dropping <7.1 support with the next release, which will open up a ton of opportunities around type hinting, and being able to drop a lot of the reflection now that I can spread into a new.

JarJak commented 5 years ago

@jkoudys when do you plan to release?

jkoudys commented 5 years ago

@JarJak Pushed up as v2. php7 cleans this up quite a bit, and php5 isn't worth supporting anymore. I don't think anyone on an ancient WordPress install running on some forsaken 5.4 server somewhere is going to use immutable.php .