Problem/Motivation

The PHPStan scan identifies the following issues:

 ------ ---------------------------------------------------------------------- 
  Line   src/EventSubscriber/ResponseSubscriber.php                            
 ------ ---------------------------------------------------------------------- 
  47     \Drupal calls should be avoided in classes, use dependency injection  
         instead                                                               
  53     \Drupal calls should be avoided in classes, use dependency injection  
         instead                                                               
 ------ ---------------------------------------------------------------------- 

Let's fix these.

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

ptmkenny created an issue. See original summary.

ptmkenny’s picture

Title: Fix phpstan issues » Fix phpstan DI issues
ptmkenny’s picture

  • ptmkenny committed 98cdaca3 on 1.0.x
    Issue #3497328 by ptmkenny: Fix phpstan DI issues
    
ptmkenny’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

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