-
Notifications
You must be signed in to change notification settings - Fork 69
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
Code validation of upgrade to PHP 7.4 #7582
Comments
Hey team! Please add your planning poker estimate with ZenHub @amponce @cweagans @ElijahLynn @indytechcook @ndouglas @olivereri @timcosgrove |
https://www.php.net/manual/en/migration74.incompatible.php may be useful to you. |
Code Compatibility test: |
Reading down the thread, #1004 was originally a 7.4 ticket and we did all the code combability checks and fixes them. It shifted to 7.3 when we had issues with drush and devshop. |
PHPStan version check: https://phpstan.org/config-reference#phpversion |
In the Tugboat config, there's a reference to #6216 which may prevent us from immediately upgrading Tugboat to PHP 7.4. @ElijahLynn do you know if we've upgraded our Tugboat Docker version from 19 to 20? I see #6223 is still open - I guess that was a followup? |
Confirmed that the host is still running Docker 19:
|
I ran I commented out the excluded tests and included contrib modules: and reran: This was a little noisier: Most of these were for unknown methods and properties on objects, which is a consequence of idiomatic Drupal development. I ignore them! and that cuts the errors almost in half. I scanned for "deprecated" but all results were of three groups:
I didn't find any references to deprecations in PHP itself. Looking at the 7.4 deprecations, this makes sense -- none jump out at me as things I've seen in our codebase. (and some things like nested ternary conditionals, given PHP <= 8.0.0's unconventional associativity would definitely jump out at me) I also reviewed the baseline file and observed that none of its listed errors could confound detection of any new issues with PHP 7.4. This is just a first step, of course, but so far I haven't turned up any issues. |
I expected PHPUnit to have the highest impact for the shortest time investment, so I ran it first:
This test fails in local dev for reasons unrelated to the 7.4 upgrade. I'll run the entire test suite now. |
The issue mentioned above with Alpine and PHP 7.4 might not be relevant since the Tugboat PHP container does not use Alpine, but Debian. Unless I'm missing something. EDIT: See followup issue #7667. EDIT 2: This is apparently still relevant because the issue seems to be with Moby and not related to Alpine Linux. |
@indytechcook I think it's sufficient to close it. I have a PR open for the actual code updates for Tubgoat/Lando/DDEV, but they're trivial obv. |
I had thought we had a follow up issue to actually make the change in tugboat/lando/ddev but it's actually an AC on this issue :) |
User Story or Problem Statement
PHP 7.3 will be end of life December 2021. Upgrade to PHP 7.4 is needed prior to making updates to BRD system with AL2.
Previous upgrade: (#1004)
Acceptance Criteria
The text was updated successfully, but these errors were encountered: