Gzuncompress(): need dictionary

Hi. I compress the string and save it to the database

$str = gzcompress('hello world');

DB config

return [
    'class' => 'yii\db\Connection',
    'dsn' => 'mysql:host=localhost;dbname=lalala',
    'username' => 'lalala',
    'password' => 'lalala',
    'charset' => 'utf8',
];

When I get a line from the database and try to restore it

$data = MyModel::findAll(['finish' => 0]);
$datajson = gzuncompress($data[0]->data);

I get an error

Blockquote
yii\base\ErrorException: gzuncompress(): need dictionary
Blockquote

If you do it this way, everything works (without DB)

$str = gzcompress('hello world');
$str = gzuncompress($str->data);

What am i doing wrong?
Снимок экрана 2025-02-14 в 20.07.21

Shouldn’t it be utf8mb4?

I’ve already tried this