Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 465d02f

Browse files
committedApr 29, 2021
v0.1.0: Raise minimum php version, change some AST representations
Raise the minimum php version from 7.0 to 7.2. Depend on phpunit 8 for local development Unify method names for Node and Token to getFullStartPosition and getStartPosition (Consistently end public API methods with Position). Avoid the need for callers to check if an object is a Node/Token before calling a method. Convert UnsetIntrinsicExpression to UnsetStatement - it can only be used as a statement. Unify previously split up lists into a single list in some AST node properties (initially done that way for backward compatibility) Clean up unnecessary special case for throw - This continues to be parsed as an ExpressionStatement with the same precedence Rename throwStatement to throwExpression in test file names.
1 parent 2a48939 commit 465d02f

File tree

70 files changed

+542
-666
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

70 files changed

+542
-666
lines changed
 

‎.travis.yml

Lines changed: 5 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,10 @@
11
language: php
22

33
php:
4-
- 7.0
5-
- 7.1
6-
- 7.2
7-
- 7.3
8-
- 7.4
9-
# Should be changed to 8.0 once travis officially provides that label.
10-
- nightly
4+
- '7.2'
5+
- '7.3'
6+
- '7.4'
7+
- '8.0'
118

129
env:
1310
- VALIDATION=false
@@ -30,12 +27,7 @@ cache:
3027

3128
before_script:
3229
- if [[ $STATIC_ANALYSIS = true ]]; then composer require phpstan/phpstan --no-update; fi
33-
- |
34-
if php -r 'exit(PHP_MAJOR_VERSION < 8 ? 0 : 1);';
35-
then composer install
36-
else
37-
composer install --ignore-platform-reqs
38-
fi
30+
- composer install
3931
- set -e # Stop on first error.
4032
- phpenv config-rm xdebug.ini || true
4133
- if find . -name "*.php" -path "./src/*" -path "./experiments/*" -path "./tools/*" -path "./syntax-visualizer/server/src/*" -exec php -l {} 2>&1 \; | grep "syntax error, unexpected"; then exit 1; fi

‎composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"php": ">=7.2"
77
},
88
"require-dev": {
9-
"phpunit/phpunit": "^7.5.20"
9+
"phpunit/phpunit": "^8.5.15"
1010
},
1111
"license": "MIT",
1212
"authors": [

0 commit comments

Comments
 (0)
Please sign in to comment.