Skip to content
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

const condition fix #618

Merged
merged 1 commit into from
Jan 5, 2021
Merged

const condition fix #618

merged 1 commit into from
Jan 5, 2021

Conversation

liborm85
Copy link
Contributor

@liborm85 liborm85 commented Dec 5, 2020

const condition fix introduced in PR #608.

Fixes #609
Fixes #613

liborm85 referenced this pull request Dec 5, 2020
* Set $errcontext argument optional to support PHP 8

- Argument is optional and deprecated in PHP 7.2

* Getting ready for PHP8, handling changed error levels/handlers mostly

* php5 compat syntax

* Updated UndefinedTemplateVarTest for PHP8 (and disabled a check for PHP<5.6) and re-enabled php:nightly in travis config

* Attempt to fix travis runs for (almost) all php versions supported

* Fix unit tests for php8, force composer to think we are still php7 to pick a supported phpunit and being less specific about an error msg because PHP8 is in active development and the exact wording is changing.

* Fixed a unit test that accidentally passed on phpunit < 7 because of sloppy string comparison.

* changelog

* run travis in xenial where possible for latest php versions. Fix unit tests from freakingo over inconsistent error messages in php8-beta.

* Incorporated AnrDaemons suggestions, making composer figure out the required phpunit version instead of specifying it explicitly and removing a unneeded error supression (@).

Co-authored-by: Jorge Sá Pereira <me@jorgesapereira.com>
@liborm85
Copy link
Contributor Author

@wisskid @AnrDaemon Can you merge this fix? And release new version?

@wisskid wisskid merged commit 820782c into smarty-php:master Jan 5, 2021
@liborm85 liborm85 deleted the constant-fix branch January 6, 2021 07:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

smarty.const wrongly evaluated for usage with comparison operators Big issue on a simple IF condition
2 participants