-
-
Notifications
You must be signed in to change notification settings - Fork 158
Closed
Description
I was playing with PHP 8.5, and found this error:
php-1 | > yii\base\ErrorException: The predefined locally scoped $http_response_header variable is deprecated, call http_get_last_response_headers() instead
php-1 | Stack trace:
php-1 | #0 /app/vendor/yiisoft/yii2/BaseYii.php(296): yii\base\ErrorHandler->handleError(8192, 'The predefined ...', '/app/vendor/yii...', 68)
php-1 | #1 /app/vendor/yiisoft/yii2/BaseYii.php(296): include()
php-1 | #2 [internal function]: yii\BaseYii::autoload('yii\\httpclient\\...')
php-1 | #3 /app/vendor/yiisoft/yii2/di/Container.php(513): ReflectionClass->__construct('yii\\httpclient\\...')
php-1 | #4 /app/vendor/yiisoft/yii2/di/Container.php(391): yii\di\Container->getDependencies('yii\\httpclient\\...')
php-1 | #5 /app/vendor/yiisoft/yii2/di/Container.php(176): yii\di\Container->build('yii\\httpclient\\...', Array, Array)
php-1 | #6 /app/vendor/yiisoft/yii2/BaseYii.php(354): yii\di\Container->get('yii\\httpclient\\...', Array)
php-1 | #7 /app/vendor/yiisoft/yii2-httpclient/src/Client.php(118): yii\BaseYii::createObject('yii\\httpclient\\...')
php-1 | #8 /app/vendor/yiisoft/yii2-httpclient/src/Client.php(233): yii\httpclient\Client->getTransport()
php-1 | #9 /app/vendor/yiisoft/yii2-httpclient/src/Request.php(451): yii\httpclient\Client->send(Object(yii\httpclient\Request))
- PHP version : 8.5.0
- yii2-httpclient version : 2.0.16
I found this related RFC : https://wiki.php.net/rfc/deprecations_php_8_5#deprecate_the_http_response_header_predefined_variable
I will open a PR soon :)
Metadata
Metadata
Assignees
Labels
No labels