Problem/Motivation
The source code of HTTPStatusSubscriber needs changes.
Steps to reproduce
When trying to access some URL which is included the http_status_code entity list the code throws:
Error: Cannot access protected property Drupal\http_status_code\Entity\HTTPStatusEntity::$status_code...
Proposed resolution
Refactor HTTPStatusSubscriber by changing: $set_status->status_code to $set_status->get('status_code')
Issue fork http_status_code-3582025
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