Skip to content

PHP 8.6 | Tests: handle change in error message format - #217

Merged
antecedent merged 2 commits into
masterfrom
php-8.6/fix-error-message-change
Aug 16, 2026
Merged

PHP 8.6 | Tests: handle change in error message format #217
antecedent merged 2 commits into
masterfrom
php-8.6/fix-error-message-change

Conversation

@jrfnl

@jrfnl jrfnl commented Aug 15, 2026

Copy link
Copy Markdown
Collaborator

Tests/require-missing: clarify skip conditions

  • As support for PHP < 7.1 has been dropped, we can use PHP_VERSION_ID instead of PHP_VERSION for the version comparisons.
  • Using a positive condition instead of a negative one improves the readability of the test code.
  • Ensure the tests have unique names.

PHP 8.6 | Tests: handle change in error message format

This update the require-missing*.phpt tests by adding a new test file to handle the PHP 8.6+ format of the expected error messages.

Ref: https://wiki.php.net/rfc/display_error_function_args

jrfnl added 2 commits August 15, 2026 23:32
* As support for PHP < 7.1 has been dropped, we can use `PHP_VERSION_ID` instead of `PHP_VERSION` for the version comparisons.
* Using a positive condition instead of a negative one improves the readability of the test code.
* Ensure the tests have unique names.
This update the `require-missing*.phpt` tests by adding a new test file to handle the PHP 8.6+ format of the expected error messages.

Ref: https://wiki.php.net/rfc/display_error_function_args
@antecedent
antecedent merged commit 39d82fe into master Aug 16, 2026
24 of 26 checks passed
@antecedent
antecedent deleted the php-8.6/fix-error-message-change branch August 16, 2026 07:34
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.

2 participants