lstrojny / functional-php

Primitives for functional programming in PHP
MIT License
1.98k stars 204 forks source link

Add default value for with() #194

Closed phanan closed 4 years ago

phanan commented 5 years ago

As discussed, this PR allows with() to return a default when $value is null. There shouldn't be BC breaks.

lstrojny commented 4 years ago

Looks good!