Problem/Motivation

Automated scans with phpstan in GitLabCI raise errors.
Current phpstan pipeline: https://git.drupalcode.org/issue/webform-3474074/-/jobs/2920066

Proposed resolution

Fix the phpstan pipeline.

Issue fork webform-3477942

Command icon Show commands

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

liam morland created an issue. See original summary.

ankitv18’s picture

Issue summary: View changes

acbramley’s picture

Status: Active » Postponed

I 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.

liam morland’s picture

Many of these are needed for D11 compatibility. The D11 issue is being split into focussed issues. This issue could be part of that process.

acbramley’s picture

@liam morland legitmate issues, sure, but making phpstan green in CI is not required for D11. The branch also needs a rebase with HEAD.

liam morland’s picture

Status: Postponed » Needs work
Issue tags: +Needs reroll

D11 branch is merged.

idebr made their first commit to this issue’s fork.

idebr’s picture

Issue tags: -Needs reroll

The phpstan pipeline is now fixed, but one test is now failing. Oddly enough it doesn't fail on my local machine.

liam morland’s picture

Issue tags: +Needs reroll

Tests are passing again on 6.3.x. Please reroll and get tests to pass.

kul.pratap’s picture

Assigned: Unassigned » kul.pratap
kul.pratap’s picture

Assigned: kul.pratap » Unassigned
liam morland’s picture

Tests are passing again on 6.3.x. Please reroll and get tests to pass.

jrockowitz made their first commit to this issue’s fork.

jrockowitz’s picture

BTW, it fine to ignore a few tricky phpstan errors via // @phpstan-ignore-next-line property.notFound.

@see https://phpstan.org/user-guide/ignoring-errors

jrockowitz’s picture

BTW, it fine to ignore a few tricky phpstan errors via // @phpstan-ignore-next-line property.notFound.

@see https://phpstan.org/user-guide/ignoring-errors

kul.pratap’s picture

Assigned: Unassigned » kul.pratap
kul.pratap’s picture

Assigned: kul.pratap » Unassigned
Status: Needs work » Needs review

There is no phpstan error. Please review.

idebr’s picture

Status: Needs review » Needs work

See #9

jrockowitz’s picture

The failing test is only happening in D11.1

idebr’s picture

Status: Needs work » Needs review
Issue tags: -Needs reroll

Fixed the last test failure.

  • jrockowitz committed da4cb882 on 6.3.x authored by ankitv18
    Issue #3477942 by idebr, ankitv18, kul.pratap, jrockowitz, liam morland...
jrockowitz’s picture

Status: Needs review » Fixed

I 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::hasCompositeElement added in 2017.

  • jrockowitz committed da4cb882 on 6.x authored by ankitv18
    Issue #3477942 by idebr, ankitv18, kul.pratap, jrockowitz, liam morland...

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.