Skip to content

Commit 16b2084

Browse files
authored
Merge pull request #20 from TysonAndre/update-php8
Update this for php8
2 parents 8f335bf + 8b9ce84 commit 16b2084

19 files changed

+408
-166
lines changed

.phan/config.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -283,6 +283,7 @@
283283
'PhanPluginDescriptionlessCommentOnPrivateProperty',
284284
// TODO: Fix edge cases in --automatic-fix for PhanPluginRedundantClosureComment
285285
'PhanPluginRedundantClosureComment',
286+
'PhanParamNameIndicatingUnusedInClosure',
286287
],
287288

288289
// If empty, no filter against issues types will be applied.

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ install:
2121

2222
# Install phan separately because the tolerant-php-parser version may be behind.
2323
script:
24-
- composer create-project phan/phan=3.0.4 ~/phan-install; ~/phan-install/phan
24+
- composer create-project phan/phan=3.2.2 ~/phan-install; ~/phan-install/phan
2525
- ./test
2626

2727
branches:

NEWS.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,14 @@
1+
1.0.1
2+
-----
3+
4+
- Support parsing php 8 syntax (does not convert `#[]` attributes) in PHP 8.
5+
(Version 1 is compatible with AST version 70, which does not expose attribute information.)
6+
- Handle edge cases in parsing.
7+
18
1.0.0
29
-----
310

4-
- Require a minimum php version of php 7.2+.
11+
- Require a minimum php version of php 7.2 to use this library.
512
- Improve support for parsing edge cases and code for newer PHP versions.
613

714
0.1.1

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ To run unit tests, you must install [nikic/php-ast](https://github.com/nikic/php
3131
You must also run `composer install` if you haven't already done so.
3232

3333
- For php 7.4, php-ast 1.0.3+ must be installed.
34+
- For php 8.0, php-ast 1.0.10+ must be installed.
3435
- Then run `vendor/bin/phpunit`
3536

3637
Possible Future Enhancements

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
},
1919
"require": {
2020
"php": ">=7.2",
21-
"microsoft/tolerant-php-parser": "0.0.20"
21+
"microsoft/tolerant-php-parser": "0.0.23"
2222
},
2323
"require-dev": {
2424
"phpunit/phpunit": "^7.5",

0 commit comments

Comments
 (0)