Problem/Motivation

phpstan step in gitlab-ci pipeline is failing: https://git.drupalcode.org/project/lupus_decoupled/-/jobs/3397370

 ------ ----------------------------------------------------------------------------------- 
  Line   modules/lupus_decoupled_ce_api/src/EventSubscriber/FrontendRedirectSubscriber.php  
 ------ ----------------------------------------------------------------------------------- 
  112    Variable $redirect_url might not be defined.                                       
 ------ ----------------------------------------------------------------------------------- 

Proposed resolution

The easiest solution seems to wrap the setResponse into if statement that checks if $redirect_url is set.

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

useernamee created an issue. See original summary.

kul.pratap’s picture

Assigned: Unassigned » kul.pratap

kul.pratap’s picture

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

Now phpstan pipeline is passing with no errors and warnings, Please review.

useernamee’s picture

Status: Needs review » Needs work
kul.pratap’s picture

Status: Needs work » Needs review
useernamee’s picture

Status: Needs review » Reviewed & tested by the community

Code looks good, thank you @kul.pratap

useernamee’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

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