4.2.22. Remove Static From Closures And Arrow Functions¶
Removes the static option from closures and arrow functions.
4.2.22.1. Before¶
<?php
$a = static function () { return 1; };
$b = static fn () => 2;
?>
4.2.22.2. After¶
<?php
$a = function () { return 1; };
$b = fn () => 2;
?>
4.2.22.3. Suggested Analysis¶
4.2.22.4. Reverse Cobbler¶
4.2.22.5. Specs¶
Short Name |
Functions/RemoveStaticFromClosure |
Exakat version |
2.3.0 |
Available in |