chore: update project for PHP 7.4 compatibility#787
Open
anonymoususer72041 wants to merge 11 commits into
Open
chore: update project for PHP 7.4 compatibility#787anonymoususer72041 wants to merge 11 commits into
anonymoususer72041 wants to merge 11 commits into
Conversation
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
Contributor
Author
|
Note: This PR is currently stacked on top of #756, so that PR should be reviewed and merged first. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 deprecatedmcryptusage with OpenSSL and fixing deprecatedimplode()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.