PHP Lambda Folding

Compatible with: IntelliJ IDEA PhpStorm
Jul 20, 2016
2 520
Plugin folds one-line closures into more concise form and provides some type inference for closure arguments. Closure body must consist of one return statement enclosing expression.

Download plugin

Recent change notes

v0.3.0: type inference for callables' arguments inside fluent calls to \PhpOption\Option(Some, None)

v0.2.0: type inference for arguments of closures passed to array_map(), array_filter(), array_udiff(), array_reduce(), usort(), uasort()

v0.1.0: Initial release

General usage instructions

Plugin folds one-line closures into more concise form. Closure body must consist of one return statement enclosing expression.