docs/en/upgrade/3.2.md
PHP to 8.2.symfony/* components to support ^6.0 || ^7.0.phpunit/phpunit to ^11.0.async-queue component renamed JobInterface::getQueueName() to getPoolName().<?php
// Before
class CustomJob extends \Hyperf\AsyncQueue\Job
{
public function getQueueName(): string
{
return 'custom';
}
}
// After
class CustomJob extends \Hyperf\AsyncQueue\Job
{
public function getPoolName(): string
{
return 'custom';
}
}
The logger configuration structure has changed. Refer to #7563.
The cache configuration structure has changed. Refer to #7594.
When using swow, add the response emitter dependency.
<?php
// config/autoload/dependencies.php
use Hyperf\Contract\ResponseEmitterInterface;
use Hyperf\Engine\ResponseEmitter;
return [
ResponseEmitterInterface::class => ResponseEmitter::class,
];
>=8.2.elasticsearch/elasticsearch to ^8.0 || ^9.0.nikic/php-parser to 5.6.symfony/* components to ^6.0 || ^7.0.phpunit/phpunit to ^11.0.google/protobuf to ^3.6.1 || ^4.2.guzzlehttp/guzzle to ^7.0.If you have upgraded to PHP 8.4, fgetcsv and fputcsv now require a default value for the escape parameter.
fputcsv($fp, $fields, escape: '');
fgetcsv($fp, escape: '');