Skip to content

chore: update project for PHP 7.4 compatibility#787

Open
anonymoususer72041 wants to merge 11 commits into
opencats:masterfrom
anonymoususer72041:chore/php7.4-compatibility
Open

chore: update project for PHP 7.4 compatibility#787
anonymoususer72041 wants to merge 11 commits into
opencats:masterfrom
anonymoususer72041:chore/php7.4-compatibility

Conversation

@anonymoususer72041
Copy link
Copy Markdown
Contributor

This PR updates OpenCATS to use PHP 7.4 as the target runtime. It raises the Composer PHP requirement to PHP 7.4, updates the Composer dependencies and lock file to PHP 7.4-compatible versions and updates the CI configuration from PHP 7.2 to PHP 7.4.

The Docker test setup now uses the local PHP container for Composer instead of running Composer through a separate generic Composer image with ignored platform requirements. This makes the documented local testing flow closer to the actual PHP runtime used by the test containers and avoids resolving dependencies against a mismatching PHP environment.

The codebase is also adjusted for PHP 7.4 compatibility by removing deprecated magic quotes checks, replacing deprecated curly brace string offsets, replacing deprecated create_function() usage, replacing deprecated mcrypt usage with OpenSSL and fixing deprecated implode() argument order. Some of these changes may become unnecessary if #778 is merged first, as that PR removes several unused legacy helpers affected by the same PHP 7.4 compatibility issues.

These changes keep the PHP 7.4 upgrade focused on compatibility, dependency updates and the local/CI test setup without introducing unrelated behavior changes.

commit a0eecfd
Author: anonymoususer72041 <247563575+anonymoususer72041@users.noreply.github.com>
Date:   Wed Apr 22 19:59:58 2026 +0200

    Use stricter assertions in tests

commit 7dcf904
Author: anonymoususer72041 <247563575+anonymoususer72041@users.noreply.github.com>
Date:   Wed Apr 22 19:50:31 2026 +0200

    Centralize PHPUnit test bootstrap

commit 0393e63
Author: anonymoususer72041 <247563575+anonymoususer72041@users.noreply.github.com>
Date:   Wed Apr 22 19:44:48 2026 +0200

    Clean up PHPUnit configuration

commit dd9b184
Author: anonymoususer72041 <247563575+anonymoususer72041@users.noreply.github.com>
Date:   Wed Apr 22 19:36:22 2026 +0200

    Refactor consecutive mock expectations

commit b60e11a
Author: anonymoususer72041 <247563575+anonymoususer72041@users.noreply.github.com>
Date:   Wed Apr 22 19:30:42 2026 +0200

    Replace deprecated mock builder methods

commit 3580471
Author: anonymoususer72041 <247563575+anonymoususer72041@users.noreply.github.com>
Date:   Wed Apr 22 19:27:17 2026 +0200

    Use expectException in CompanyRepositoryTest

commit 9474ef7
Author: anonymoususer72041 <247563575+anonymoususer72041@users.noreply.github.com>
Date:   Wed Apr 22 19:22:28 2026 +0200

    Replace deprecated regex assertions in tests
@anonymoususer72041 anonymoususer72041 requested a review from RussH May 14, 2026 10:50
@anonymoususer72041
Copy link
Copy Markdown
Contributor Author

Note: This PR is currently stacked on top of #756, so that PR should be reviewed and merged first.

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.

1 participant