From 2e588a3c37584e71270dc46c61ea3bffcd76e217 Mon Sep 17 00:00:00 2001 From: Vasek Purchart Date: Sun, 29 Nov 2015 17:38:18 +0100 Subject: [PATCH] allow running under PHP 7 --- .travis.yml | 1 + composer.json | 2 +- readme.md | 2 ++ 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index af9a204..2807d05 100644 --- a/.travis.yml +++ b/.travis.yml @@ -5,6 +5,7 @@ sudo: false php: - 5.5 - 5.6 + - 7.0 - nightly - hhvm diff --git a/composer.json b/composer.json index 0c27d2d..ed494f0 100644 --- a/composer.json +++ b/composer.json @@ -11,7 +11,7 @@ } ], "require": { - "php": "~5.5", + "php": "~5.5|~7.0", "squizlabs/php_codesniffer": "~2.3.4" }, "require-dev": { diff --git a/readme.md b/readme.md index 32810ca..cf9269a 100644 --- a/readme.md +++ b/readme.md @@ -20,6 +20,8 @@ Automatic checks of this standard are implemented as sniffs for [PHP_CodeSniffer 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. +> 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. + Stability ---------