Skip to content

Commit 2e588a3

Browse files
committed
allow running under PHP 7
1 parent 6beb7e3 commit 2e588a3

File tree

3 files changed

+4
-1
lines changed

3 files changed

+4
-1
lines changed

.travis.yml

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ sudo: false
55
php:
66
- 5.5
77
- 5.6
8+
- 7.0
89
- nightly
910
- hhvm
1011

composer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
}
1212
],
1313
"require": {
14-
"php": "~5.5",
14+
"php": "~5.5|~7.0",
1515
"squizlabs/php_codesniffer": "~2.3.4"
1616
},
1717
"require-dev": {

readme.md

+2
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ Automatic checks of this standard are implemented as sniffs for [PHP_CodeSniffer
2020

2121
These checks also include some code analysis tools, such as detecting unreachable code etc. These are not part of the standard, but should be helpful.
2222

23+
> Note that although the checks are allowed to run under PHP 7, the composition of CS Sniffs expects PHP 5 code. Please report any unexpected behavior in issues.
24+
2325
Stability
2426
---------
2527

0 commit comments

Comments
 (0)