-
Notifications
You must be signed in to change notification settings - Fork 714
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
Fixes for php8.0.0beta3 #608
Merged
Merged
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
e128953
Set $errcontext argument optional to support PHP 8
xorti 818aa3c
Getting ready for PHP8, handling changed error levels/handlers mostly
wisskid 62dc42b
php5 compat syntax
wisskid 3b0b48e
Updated UndefinedTemplateVarTest for PHP8 (and disabled a check for P…
wisskid ca2be22
Attempt to fix travis runs for (almost) all php versions supported
wisskid 7d48d86
Fix unit tests for php8, force composer to think we are still php7 to…
wisskid 6f41b9b
Fixed a unit test that accidentally passed on phpunit < 7 because of …
wisskid 8df47cf
changelog
wisskid d1dcee0
run travis in xenial where possible for latest php versions. Fix unit…
wisskid f25dd94
Incorporated AnrDaemons suggestions, making composer figure out the r…
wisskid 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,38 +1,39 @@ | ||
language: php | ||
os: linux | ||
dist: xenial | ||
|
||
sudo: false | ||
|
||
dist: trusty | ||
install: | ||
- travis_retry composer install | ||
|
||
matrix: | ||
jobs: | ||
include: | ||
- php: 5.3 # Composer requires PHP 5.3.2+ to run, so we cannot test below 5.3 | ||
- php: 5.3 # Composer and PHPUnit require PHP 5.3.2+ to run, so we cannot test below 5.3 | ||
dist: precise # PHP 5.3 is supported only on Precise. | ||
- php: 5.4 | ||
dist: trusty # PHP 5.4 is supported only on Trusty. | ||
- php: 5.5 | ||
dist: trusty # PHP 5.5 is supported only on Trusty. | ||
- php: 5.6 | ||
- php: 7.0 | ||
- php: 7.1 | ||
- php: 7.2 | ||
- php: 7.3 | ||
- php: 7.4 | ||
# - php: nightly # PHP nightly build testing disabled because PHPUnit doesn't support PHP8 yet. | ||
- php: nightly | ||
install: travis_retry composer config platform.php 7.4.0 && composer install | ||
fast_finish: true | ||
allow_failures: | ||
- php: nightly | ||
- php: nightly # PHP 8 is still in beta | ||
|
||
services: | ||
- memcached | ||
- mysql | ||
|
||
before_script: | ||
- mysql -e "create database IF NOT EXISTS test;" -uroot | ||
- mysql -e "create database IF NOT EXISTS test;" -uroot | ||
|
||
before_install: | ||
- phpenv config-rm xdebug.ini || return 0 | ||
|
||
install: | ||
- travis_retry composer install | ||
- phpenv config-rm xdebug.ini || return 0 | ||
|
||
script: | ||
- ./phpunit.sh | ||
- ./phpunit.sh |
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
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
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
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
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.
return "defined('{$_index[1]}') ? constant('{$_index[1]}') : null";
change to
return "(defined('{$_index[1]}') ? constant('{$_index[1]}') : null)";
??
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.
I missed the fact that this is a code generation, in which case the braces may be necessary, given the fact the resulting expression may be used in ambiguous context..