yiisoft / yii2-httpclient

Yii 2 HTTP client
https://www.yiiframework.com
BSD 3-Clause "New" or "Revised" License
430 stars 157 forks source link

debug panel throw ErrorException #229

Closed pigochu closed 1 year ago

pigochu commented 1 year ago

What steps will reproduce the problem?

My Config

if (!YII_ENV_TEST) {
    // configuration adjustments for 'dev' environment
    $config['bootstrap'][] = 'debug';
    $config['modules']['debug'] = [
        'class' => \yii\debug\Module::class,
        'panels' => [
            'httpclient' => [
                'class' => 'yii\\httpclient\\debug\\HttpClientPanel',
            ],
        ],
        'allowedIPs' => ['*'],
    ];
}

What's expected?

What do you get instead?

PHP Deprecated Warning – yii\base\ErrorException

cut2

cut

Additional info

Q A
Yii version 2.0.47
Yii HTTP Client version 2.0.14
PHP version 8.1 (docker yii2)
Operating system Linux (docker yii2)
samdark commented 1 year ago

Do you have time for a fix / pull request?

samdark commented 1 year ago

Oh, wait. Is should be already fixed in #226.