-
Notifications
You must be signed in to change notification settings - Fork 117
Fix dev dependencies for PHP 7.4+ compatibility #132
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
@copilot |
Co-authored-by: marcocesarato <36447518+marcocesarato@users.noreply.github.com>
|
""" Problem 1 Error: Your lock file does not contain a compatible set of packages. Please run composer update. Problem 1 Error: Process completed with exit code 2. Pipeline error |
Co-authored-by: marcocesarato <36447518+marcocesarato@users.noreply.github.com>
Removed The exit code tests are in |
Co-authored-by: marcocesarato <36447518+marcocesarato@users.noreply.github.com>
Fixed the PHP 7.4 compatibility issues by constraining all dev dependencies to PHP 7.4+ compatible versions (commit: 4c1f89a). Key changes:
The lock file now contains packages compatible with PHP 7.4+. |
|
""" Runtime: PHP 8.3.26 ...W............... 19 / 19 (100%) Time: 00:05.325, Memory: 6.00 MB There was 1 warning:
WARNINGS! |
Co-authored-by: marcocesarato <36447518+marcocesarato@users.noreply.github.com>
Fixed the deprecated PHPUnit assertion by replacing This resolves the PHPUnit 9 deprecation warning and prevents the test suite from exiting with error code 1. |
|
Run davidlienhard/php-simple-lint@1 PHP version: 7.4 (7.4.33) PHP Parse error: syntax error, unexpected ')', expecting variable (T_VARIABLE) in ./src/Scanner.php on line 1042 check has finished in 2s
|
Co-authored-by: marcocesarato <36447518+marcocesarato@users.noreply.github.com>
Fixed the PHP 7.4 syntax error by removing the trailing comma in the anonymous function parameter list on line 1042 of Trailing commas in function parameters are only supported in PHP 8.0+, but this project requires PHP 7.4+ compatibility. The lint check now passes successfully. |
Summary
Fixed CI failures across PHP 7.4, 8.0, and 8.1 by downgrading all dev dependencies to PHP 7.4+ compatible versions.
Package Version Changes
Symfony Components (v7.x/v6.x → v5.4.x, requires PHP 7.2.5+):
Other Dependencies:
Additional Changes
test-exit-codes.phpandtest-scanner.phpfrom root directory as their functionality is already covered by proper PHPUnit tests intests/Integration/DefaultScanTest.phpassertRegExp()withassertMatchesRegularExpression()in test suiteThis ensures compatibility with all PHP versions tested in CI: 7.4, 8.0, 8.1, 8.2, 8.3.
Original prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.