View Issue Details

IDProjectCategoryView StatusLast Update
0029882mantisbttoolspublic2022-04-17 04:04
Reporterdregad Assigned Todregad  
Status resolvedResolutionfixed 
Target Version2.26.0Fixed in Version2.26.0 
Summary0029882: Enable PHP 8.1 builds on Travis-CI

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.


related to 0029881 closeddregad Fix Travis-CI builds 


There are no notes attached to this issue.

Related Changesets

MantisBT: master 4d820da5

2022-04-12 03:34


Details Diff
Enable PHP 8.1 builds

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

MantisBT: master f82c03b1

2022-04-14 20:45


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
mod - .travis.yml Diff File
mod - composer.json Diff File
mod - composer.lock Diff File