Skip to content

Creation of dynamic property Http\HttpRequest::$inputStream is deprecated #24

Description

@james-w-arnold

PHP 8.2 deprecated the creation of dynamic properties: https://php.watch/versions/8.2/dynamic-properties-deprecated

Currently, attempting to instantiate an instance of HttpRequest results in a deprecated error in PHP 8.2.

It is caused by this line:

$this->inputStream = $inputStream;

in HttpRequest.

Should be a simple fix to add it as a named property - I will put up a PR.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions