Download the PHP package uuf6429/expression-language-arrowfunc without Composer
On this page you can find all versions of the php package uuf6429/expression-language-arrowfunc. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download uuf6429/expression-language-arrowfunc
More information about uuf6429/expression-language-arrowfunc
Files in uuf6429/expression-language-arrowfunc
Download uuf6429/expression-language-arrowfunc
More information about uuf6429/expression-language-arrowfunc
Files in uuf6429/expression-language-arrowfunc
Vendor uuf6429
Package expression-language-arrowfunc
Short Description Arrow function support in Symfony Expression Language
License MIT
Homepage http://github.com/uuf6429/expression-language-arrowfunc
Package expression-language-arrowfunc
Short Description Arrow function support in Symfony Expression Language
License MIT
Homepage http://github.com/uuf6429/expression-language-arrowfunc
Please rate this library. Is it a good library?
Informations about the package expression-language-arrowfunc
Symfony Expression Language Arrow Function
Arrow function (aka "Lambda Expression" or "Anonymous Function") support in Symfony Expression Language component.
Syntax
Safety
Returning callbacks can be dangerous in PHP. If the returned value is not checked, PHP may end up executing arbitrary global functions, static class methods or object methods.
Problem Example
If $expression
returns a string or array, array_filter()
will arbitrarily call whatever was returned.
Solution
There are two solutions:
- Set the type declaration of methods using the callback to
Closure
(notCallable
!) - prone to mistakes and quite risky. - The engine returns the callback wrapped in an object that cannot be invoked by default - this is the safest option (and default one).
All versions of expression-language-arrowfunc with dependencies
PHP Build Version
Package Version
The package uuf6429/expression-language-arrowfunc contains the following files
Loading the files please wait ....