http icon indicating copy to clipboard operation
http copied to clipboard

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

Open james-w-arnold opened this issue 2 years ago • 1 comments

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.

james-w-arnold avatar Apr 02 '23 13:04 james-w-arnold

I uploaded my own version because I sent a pull request to support php 8.2 , but never response and the package is not update it since 2016. https://github.com/masterfermin02/http

masterfermin02 avatar Dec 14 '23 21:12 masterfermin02