Skip to content

Commit

Permalink
Implement xp-framework/rfc#334: Drop PHP 5.6 support
Browse files Browse the repository at this point in the history
  • Loading branch information
thekid committed Sep 30, 2019
1 parent 67d11b9 commit 60b8825
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 8 deletions.
1 change: 0 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ language: php
dist: trusty

php:
- 5.6
- 7.0
- 7.1
- 7.2
Expand Down
8 changes: 8 additions & 0 deletions ChangeLog.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,14 @@ XP Compiler ChangeLog

## ?.?.? / ????-??-??

## 5.0.0 / ????-??-??

* Added support for XP 10 and newer versions of library dependencies
(@thekid)
* Implemented xp-framework/rfc#334: Drop PHP 5.6. The minimum required
PHP version is now 7.0.0!
(@thekid)

## 4.0.0 / 2019-09-09

* Merged PR #69: Remove support for Hack arrow functions - @thekid
Expand Down
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ XP Compiler
[![Build Status on TravisCI](https://secure.travis-ci.org/xp-forge/sequence.svg)](http://travis-ci.org/xp-framework/compiler)
[![XP Framework Module](https://raw.githubusercontent.com/xp-framework/web/master/static/xp-framework-badge.png)](https://github.com/xp-framework/core)
[![BSD Licence](https://raw.githubusercontent.com/xp-framework/web/master/static/licence-bsd.png)](https://github.com/xp-framework/core/blob/master/LICENCE.md)
[![Required PHP 5.6+](https://raw.githubusercontent.com/xp-framework/web/master/static/php-5_6plus.png)](http://php.net/)
[![Supports PHP 7.0+](https://raw.githubusercontent.com/xp-framework/web/master/static/php-7_0plus.png)](http://php.net/)
[![Latest Stable Version](https://poser.pugx.org/xp-framework/compiler/version.png)](https://packagist.org/packages/xp-framework/compiler)

Expand All @@ -16,7 +15,7 @@ After adding the compiler to your project via `composer require xp-framework/com

Example
-------
The following code uses Hack, PHP 7.4, PHP 7.3, PHP 7.2, PHP 7.1 and PHP 7.0 features but runs on anything >= PHP 5.6. Builtin features from newer PHP versions are translated to work with the currently executing runtime if necessary.
The following code uses Hack, PHP 7.4, PHP 7.3, PHP 7.2, PHP 7.1 and PHP 7.0 features but runs on anything >= PHP 7.0. Builtin features from newer PHP versions are translated to work with the currently executing runtime if necessary.

```php
<?php // In a file "HelloWorld.php"
Expand Down
10 changes: 5 additions & 5 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@
"description" : "AST for the XP Framework",
"keywords": ["module", "xp"],
"require" : {
"xp-framework/core": "^9.0 | ^8.0 | ^7.0 | ^6.10",
"xp-framework/tokenize": "^8.1",
"xp-framework/ast": "^3.0",
"php" : ">=5.6.0"
"xp-framework/core": "^10.0 | ^9.0 | ^8.0 | ^7.0",
"xp-framework/tokenize": "^9.0 | ^8.1",
"xp-framework/ast": "^4.0 | ^3.0",
"php" : ">=7.0.0"
},
"require-dev" : {
"xp-framework/unittest": "^9.3"
"xp-framework/unittest": "^10.0 | ^9.3"
},
"bin": ["bin/xp.xp-framework.compiler.compile"],
"autoload" : {
Expand Down

0 comments on commit 60b8825

Please sign in to comment.