Closed (fixed)
Project:
Webform
Version:
6.3.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
1 Oct 2024 at 01:01 UTC
Updated:
10 Apr 2025 at 14:59 UTC
Jump to comment: Most recent
Automated scans with phpstan in GitLabCI raise errors.
Current phpstan pipeline: https://git.drupalcode.org/issue/webform-3474074/-/jobs/2920066
Fix the phpstan pipeline.
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
ankitv18 commentedComment #4
acbramley commentedI would recommend holding off on all of these pipeline fixes until the D11 branch is merged. Otherwise we're going to have major conflicts which will be very hard to manage.
Comment #5
liam morlandMany of these are needed for D11 compatibility. The D11 issue is being split into focussed issues. This issue could be part of that process.
Comment #6
acbramley commented@liam morland legitmate issues, sure, but making phpstan green in CI is not required for D11. The branch also needs a rebase with HEAD.
Comment #7
liam morlandD11 branch is merged.
Comment #9
idebr commentedThe phpstan pipeline is now fixed, but one test is now failing. Oddly enough it doesn't fail on my local machine.
Comment #10
liam morlandTests are passing again on 6.3.x. Please reroll and get tests to pass.
Comment #11
kul.pratap commentedComment #12
kul.pratap commentedComment #13
liam morlandTests are passing again on 6.3.x. Please reroll and get tests to pass.
Comment #15
jrockowitz commentedBTW, it fine to ignore a few tricky phpstan errors via
// @phpstan-ignore-next-line property.notFound.@see https://phpstan.org/user-guide/ignoring-errors
Comment #16
jrockowitz commentedBTW, it fine to ignore a few tricky phpstan errors via
// @phpstan-ignore-next-line property.notFound.@see https://phpstan.org/user-guide/ignoring-errors
Comment #17
kul.pratap commentedComment #18
kul.pratap commentedThere is no phpstan error. Please review.
Comment #19
idebr commentedSee #9
Comment #20
jrockowitz commentedThe failing test is only happening in D11.1
Comment #21
idebr commentedFixed the last test failure.
Comment #23
jrockowitz commentedI am going to go with this MR is good enough. The only breaking change is the removal of the completely unused
\Drupal\webform\Plugin\WebformElement\TextFormat::hasCompositeElementadded in 2017.