Skip to content

Commit 80f8de6

Browse files
committed
documentation about PHP7
1 parent a0c99dc commit 80f8de6

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,15 @@ No panic : you can read the [How to read the HTML report page](http://www.phpmet
5252

5353
> If you need a pure string representation of the reports in StdOut, just use `phpmetrics -q --report-xml=php://stdout <folder or filename>`
5454
55+
## Compatibility
56+
57+
PhpMetrics can parse PHP code from **PHP 5.3 to PHP 7.x**.
58+
59+
> I want to parse PHP7 code but I use PHP 5.x
60+
61+
You can parse PHP7 code, but your interpreter will detect syntax errors in your code. To prevent this, please
62+
use the `--ignore-errors` option.
63+
5564
## Conditions of failure
5665

5766
Customizing the conditions of failure is very easy with the`--failure-condition` option. For example:

0 commit comments

Comments
 (0)