View Issue Details

IDProjectCategoryView StatusLast Update
0029882mantisbttoolspublic2023-10-31 16:32
Reporterdregad Assigned Todregad  
PrioritynormalSeverityminorReproducibilityN/A
Status closedResolutionfixed 
Target Version2.26.0Fixed in Version2.26.0 
Summary0029882: Enable PHP 8.1 builds on Travis-CI
Description

Following restoration of Travis-CI builds (see 0029881), we need to make sure that our unit tests also run against PHP 8.1

This is a challenge, because we still support PHP 7.0 so we're stuck with PHPUnit 6.x which is no longers supported and does not work with PHP 8.1 - many deprecation warnings are thrown, causing the builds to fail.

TagsNo tags attached.

Relationships

related to 0029881 closeddregad Fix Travis-CI builds 
related to 0032810 closeddregad Ugrade to PHPUnit 8.5 and adapt test suite 

Activities

There are no notes attached to this issue.

Related Changesets

MantisBT: master 4d820da5

2022-04-12 03:34

dregad


Details Diff
Enable PHP 8.1 builds

Fixes 0029882
Affected Issues
0029882
mod - .travis.yml Diff File

MantisBT: master f82c03b1

2022-04-14 20:45

dregad


Details Diff
Ignore E_DEPRECATED notices in PHP 8.1 builds

This is a hack to enable PHP 8.1 builds with PHPUnit 6.5, which is the
latest version that can be used with MantisBT 2.26's minimum PHP
requirement (7.0).

Modified composer.json to use the following custom MantisBT packages:
- phpunit/phpunit
- phpunit/php-code-coverage
- phpunit/php-file-iterator

The original repos were forked to the mantisbt organization, then a
branch was created off the latest tag; minimal code changes to avoid
deprecation notices in PHP 8.1 were committed.

We should be able to get rid of this when we update our PHP requirement
to 7.2, which will allow us to use PHPUnit 8.

Fixes 0029882
Affected Issues
0029882
mod - .travis.yml Diff File
mod - composer.json Diff File
mod - composer.lock Diff File

MantisBT: master 44525954

2023-08-01 12:15

dregad


Details Diff
Update PHPUnit minimum version to 8.5

With PHPUnit 8.5, which supports PHP >= 7.2, we no longer need the
temporary changes from issue 0029882 to provide PHP 8.1 compatibility.

This reverts commit f82c03b1b5b215fa3926d427cb8d7407dcb9965f by removing
the dependencies on custom forks of PHPUnit and required libraries.

Fixes 0032810
Affected Issues
0029882, 0032810
mod - composer.json Diff File