-
Notifications
You must be signed in to change notification settings - Fork 539
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Introduced PHP 8 support; removed support for PHP 5.6 + 7.0 #383
Merged
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
0b5f59f
Introduced PHP 8 support; removed support for PHP 5.6
k00ni 805b8f3
ditched PHP 7.0 support
k00ni f595ac2
fixed coding style issues
k00ni f909d9b
fixed coding style issues (based on latest updated rules)
k00ni cf16a0f
moved development-tools to separate folder
k00ni fa58a53
Merge branch 'master' into php8
k00ni 28de64d
RawDataParserTest: added void to setUp
k00ni d3508b5
Update DEVELOPER.md
k00ni c618537
fix failing scrutinizer integration
k00ni 870dfc1
CS workflow: removed obsolete env SYMFONY_PHPUNIT_VERSION
k00ni a65d972
workflows: use more Makefile commands instead of raw ones
k00ni File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
# Developers | ||
|
||
## .editorconfig | ||
|
||
Please make sure your editor uses our `.editorconfig` file. It contains rules about our coding styles. | ||
|
||
## Development Tools and Tests | ||
|
||
Our test related files are located in `tests` folder. | ||
Tests are written using PHPUnit. | ||
|
||
To install (and update) development tools like PHPUnit or PHP-CS-Fixer run: | ||
|
||
> make install-dev-tools | ||
|
||
Development tools are getting installed in `dev-tools/vendor`. | ||
Please check `dev-tools/composer.json` for more information about versions etc. | ||
To run a tool manually you use `dev-tools/vendor/bin`, for instance: | ||
|
||
> dev-tools/vendor/bin/php-cs-fixer fix --verbose --dry-run | ||
|
||
Below are a few shortcuts to improve your developer experience. | ||
|
||
### PHPUnit | ||
|
||
To run all tests run: | ||
|
||
> make run-phpunit | ||
|
||
### PHP-CS-Fixer | ||
|
||
To check coding styles run: | ||
|
||
> make run-php-cs-fixer | ||
|
||
### PHPStan | ||
|
||
To run a static code analysis use: | ||
|
||
> make run-phpstan |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
install-dev-tools: | ||
composer update --working-dir=dev-tools | ||
|
||
run-php-cs-fixer: | ||
dev-tools/vendor/bin/php-cs-fixer fix $(ARGS) | ||
|
||
run-phpstan: | ||
dev-tools/vendor/bin/phpstan/phpstan/phpstan analyze $(ARGS) | ||
|
||
run-phpunit: | ||
dev-tools/vendor/bin/phpunit $(ARGS) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
"description": "This file provides development-only dependencies.", | ||
"require-dev": { | ||
"friendsofphp/php-cs-fixer": "^2.16", | ||
"phpstan/phpstan": "^0.12.81", | ||
"phpstan/phpstan-phpunit": "^0.12.18", | ||
"phpunit/phpunit": ">=7.5" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@smalot Do you see any issues with that addition?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you remind me when does this method is called and why we try to validate equality between "5" and "5_0" ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you remove this code, assertion in
testEquals
of ElementXRefTest.php will fail in PHP 8.0.