phpstan pipeline is failing

Created on 20 November 2024, 2 months ago

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.

📌 Task
Status

Active

Version

1.0

Component

Code

Created by

🇸🇮Slovenia useernamee Ljubljana

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024