Skip to content

Commit 82f572c

Browse files
committed
Revert "Emit callable expressions as regular function closures for PHP < 7.4"
This reverts commit 30de584.
1 parent 30de584 commit 82f572c

File tree

4 files changed

+3
-36
lines changed

4 files changed

+3
-36
lines changed

src/main/php/lang/ast/emit/CallablesAsClosures.class.php

Lines changed: 0 additions & 33 deletions
This file was deleted.

src/main/php/lang/ast/emit/PHP70.class.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
* @see https://wiki.php.net/rfc#php_70
99
*/
1010
class PHP70 extends PHP {
11-
use OmitPropertyTypes, OmitConstModifiers, CallablesAsClosures;
11+
use OmitPropertyTypes, OmitConstModifiers;
1212
use RewriteNullCoalesceAssignment, RewriteLambdaExpressions, RewriteMultiCatch, RewriteClassOnObjects, RewriteExplicitOctals;
1313

1414
/** Sets up type => literal mappings */

src/main/php/lang/ast/emit/PHP71.class.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
* @see https://wiki.php.net/rfc#php_71
99
*/
1010
class PHP71 extends PHP {
11-
use OmitPropertyTypes, CallablesAsClosures;
11+
use OmitPropertyTypes;
1212
use RewriteNullCoalesceAssignment, RewriteLambdaExpressions, RewriteClassOnObjects, RewriteExplicitOctals;
1313

1414
/** Sets up type => literal mappings */

src/main/php/lang/ast/emit/PHP72.class.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
* @see https://wiki.php.net/rfc#php_72
99
*/
1010
class PHP72 extends PHP {
11-
use OmitPropertyTypes, CallablesAsClosures;
11+
use OmitPropertyTypes;
1212
use RewriteNullCoalesceAssignment, RewriteLambdaExpressions, RewriteClassOnObjects, RewriteExplicitOctals;
1313

1414
/** Sets up type => literal mappings */

0 commit comments

Comments
 (0)