Skip to content

Commit a21d8ec

Browse files
committed
[PHP7] extractor of PHP7 code works even in <PHP7
1 parent c24900e commit a21d8ec

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

compatibility.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
<?php
2+
// PHP 7
3+
defined('T_SPACESHIP') ||define('T_SPACESHIP', '<=>'); // 289
4+
defined('T_COALESCE') ||define('T_COALESCE', '??'); // 282

composer.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@
2626
"autoload": {
2727
"psr-0": {
2828
"Hal\\": "./src/"
29-
}
29+
},
30+
"files": ["./compatibility.php"]
3031
},
3132
"require": {
3233
"php": ">=5.4",

0 commit comments

Comments
 (0)