Format code by the latest cs-fixer. (#6617)

This commit is contained in:
李铭昕 2024-03-23 19:28:51 +08:00 committed by GitHub
parent ddc1a2537a
commit fc488034b9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2752 changed files with 4274 additions and 1357 deletions

View File

@ -94,7 +94,9 @@ return (new PhpCsFixer\Config())
'single_quote' => true, 'single_quote' => true,
'standardize_not_equals' => true, 'standardize_not_equals' => true,
'multiline_comment_opening_closing' => true, 'multiline_comment_opening_closing' => true,
'nullable_type_declaration_for_default_null_value' => true, // Since PHP 8.3, default null values can be declared as nullable. // Since PHP 8.3, default null values can be declared as nullable.
'nullable_type_declaration_for_default_null_value' => true,
'single_line_empty_body' => false,
]) ])
->setFinder( ->setFinder(
PhpCsFixer\Finder::create() PhpCsFixer\Finder::create()

View File

@ -4,6 +4,10 @@
- [#6613](https://github.com/hyperf/hyperf/pull/6613) Added event of release connection for `hyperf/pool`. - [#6613](https://github.com/hyperf/hyperf/pull/6613) Added event of release connection for `hyperf/pool`.
## Optimized
- [#6616](https://github.com/hyperf/hyperf/pull/6616) [#6617](https://github.com/hyperf/hyperf/pull/6617) Format code by the latest `cs-fixer`.
# v3.1.14 - 2024-03-21 # v3.1.14 - 2024-03-21
## Fixed ## Fixed

View File

@ -32,4 +32,4 @@ AstVisitorRegistry::insert(ProxyCallVisitor::class);
// Register Property Handler. // Register Property Handler.
RegisterInjectPropertyHandler::register(); RegisterInjectPropertyHandler::register();
(new RegisterPropertyHandlerListener())->process(new \stdClass()); (new RegisterPropertyHandlerListener())->process(new stdClass());

View File

@ -38,7 +38,7 @@
"fakerphp/faker": "^1.23", "fakerphp/faker": "^1.23",
"fig/http-message-util": "^1.1.2", "fig/http-message-util": "^1.1.2",
"filp/whoops": "^2.7", "filp/whoops": "^2.7",
"friendsofphp/php-cs-fixer": "~3.16.0", "friendsofphp/php-cs-fixer": "^3.52",
"google/common-protos": "^3.2|^4.4", "google/common-protos": "^3.2|^4.4",
"google/protobuf": "^3.6.1", "google/protobuf": "^3.6.1",
"grpc/grpc": "^1.15", "grpc/grpc": "^1.15",

View File

@ -16,7 +16,6 @@ parameters:
- %currentWorkingDirectory%/src/*/class_map/* - %currentWorkingDirectory%/src/*/class_map/*
- %currentWorkingDirectory%/src/di/src/Resolver/FactoryResolver.php - %currentWorkingDirectory%/src/di/src/Resolver/FactoryResolver.php
- %currentWorkingDirectory%/src/config-zookeeper/src/Client.php - %currentWorkingDirectory%/src/config-zookeeper/src/Client.php
- %currentWorkingDirectory%/src/contract/*
- %currentWorkingDirectory%/src/database/* - %currentWorkingDirectory%/src/database/*
- %currentWorkingDirectory%/src/database-pgsql/* - %currentWorkingDirectory%/src/database-pgsql/*
- %currentWorkingDirectory%/src/db/src/PgSQL/* - %currentWorkingDirectory%/src/db/src/PgSQL/*
@ -25,7 +24,6 @@ parameters:
- %currentWorkingDirectory%/src/grpc/* - %currentWorkingDirectory%/src/grpc/*
- %currentWorkingDirectory%/src/grpc-server/* - %currentWorkingDirectory%/src/grpc-server/*
- %currentWorkingDirectory%/src/ide-helper/* - %currentWorkingDirectory%/src/ide-helper/*
- %currentWorkingDirectory%/src/swagger/*
- %currentWorkingDirectory%/src/validation/* - %currentWorkingDirectory%/src/validation/*
- %currentWorkingDirectory%/src/view/src/Engine/* - %currentWorkingDirectory%/src/view/src/Engine/*
- %currentWorkingDirectory%/src/server/src/SwowServer.php - %currentWorkingDirectory%/src/server/src/SwowServer.php

View File

@ -9,6 +9,7 @@ declare(strict_types=1);
* @contact group@hyperf.io * @contact group@hyperf.io
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE * @license https://github.com/hyperf/hyperf/blob/master/LICENSE
*/ */
namespace Hyperf\Amqp; namespace Hyperf\Amqp;
use Hyperf\Amqp\Exception\LoopBrokenException; use Hyperf\Amqp\Exception\LoopBrokenException;

View File

@ -9,6 +9,7 @@ declare(strict_types=1);
* @contact group@hyperf.io * @contact group@hyperf.io
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE * @license https://github.com/hyperf/hyperf/blob/master/LICENSE
*/ */
namespace Hyperf\Amqp\Annotation; namespace Hyperf\Amqp\Annotation;
use Attribute; use Attribute;

View File

@ -9,6 +9,7 @@ declare(strict_types=1);
* @contact group@hyperf.io * @contact group@hyperf.io
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE * @license https://github.com/hyperf/hyperf/blob/master/LICENSE
*/ */
namespace Hyperf\Amqp\Annotation; namespace Hyperf\Amqp\Annotation;
use Attribute; use Attribute;

View File

@ -9,6 +9,7 @@ declare(strict_types=1);
* @contact group@hyperf.io * @contact group@hyperf.io
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE * @license https://github.com/hyperf/hyperf/blob/master/LICENSE
*/ */
namespace Hyperf\Amqp; namespace Hyperf\Amqp;
use Hyperf\Amqp\Message\MessageInterface; use Hyperf\Amqp\Message\MessageInterface;

View File

@ -9,6 +9,7 @@ declare(strict_types=1);
* @contact group@hyperf.io * @contact group@hyperf.io
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE * @license https://github.com/hyperf/hyperf/blob/master/LICENSE
*/ */
namespace Hyperf\Amqp\Builder; namespace Hyperf\Amqp\Builder;
use PhpAmqpLib\Wire\AMQPTable; use PhpAmqpLib\Wire\AMQPTable;

View File

@ -9,6 +9,7 @@ declare(strict_types=1);
* @contact group@hyperf.io * @contact group@hyperf.io
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE * @license https://github.com/hyperf/hyperf/blob/master/LICENSE
*/ */
namespace Hyperf\Amqp\Builder; namespace Hyperf\Amqp\Builder;
use Hyperf\Amqp\Message\Type; use Hyperf\Amqp\Message\Type;
@ -32,7 +33,7 @@ class ExchangeBuilder extends Builder
return $this; return $this;
} }
public function getType(): Type|string public function getType(): string|Type
{ {
return $this->type; return $this->type;
} }
@ -42,7 +43,7 @@ class ExchangeBuilder extends Builder
return $this->type instanceof Type ? $this->type->value : $this->type; return $this->type instanceof Type ? $this->type->value : $this->type;
} }
public function setType(Type|string $type): static public function setType(string|Type $type): static
{ {
$this->type = $type; $this->type = $type;
return $this; return $this;

View File

@ -9,6 +9,7 @@ declare(strict_types=1);
* @contact group@hyperf.io * @contact group@hyperf.io
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE * @license https://github.com/hyperf/hyperf/blob/master/LICENSE
*/ */
namespace Hyperf\Amqp\Builder; namespace Hyperf\Amqp\Builder;
use PhpAmqpLib\Wire\AMQPTable; use PhpAmqpLib\Wire\AMQPTable;

View File

@ -9,6 +9,7 @@ declare(strict_types=1);
* @contact group@hyperf.io * @contact group@hyperf.io
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE * @license https://github.com/hyperf/hyperf/blob/master/LICENSE
*/ */
namespace Hyperf\Amqp; namespace Hyperf\Amqp;
use Hyperf\Amqp\Listener\BeforeMainServerStartListener; use Hyperf\Amqp\Listener\BeforeMainServerStartListener;

View File

@ -9,6 +9,7 @@ declare(strict_types=1);
* @contact group@hyperf.io * @contact group@hyperf.io
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE * @license https://github.com/hyperf/hyperf/blob/master/LICENSE
*/ */
namespace Hyperf\Amqp; namespace Hyperf\Amqp;
use Hyperf\Amqp\Exception\NotSupportedException; use Hyperf\Amqp\Exception\NotSupportedException;

View File

@ -9,6 +9,7 @@ declare(strict_types=1);
* @contact group@hyperf.io * @contact group@hyperf.io
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE * @license https://github.com/hyperf/hyperf/blob/master/LICENSE
*/ */
namespace Hyperf\Amqp; namespace Hyperf\Amqp;
class Constants class Constants

View File

@ -9,6 +9,7 @@ declare(strict_types=1);
* @contact group@hyperf.io * @contact group@hyperf.io
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE * @license https://github.com/hyperf/hyperf/blob/master/LICENSE
*/ */
namespace Hyperf\Amqp; namespace Hyperf\Amqp;
use Hyperf\Amqp\Event\AfterConsume; use Hyperf\Amqp\Event\AfterConsume;

View File

@ -9,6 +9,7 @@ declare(strict_types=1);
* @contact group@hyperf.io * @contact group@hyperf.io
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE * @license https://github.com/hyperf/hyperf/blob/master/LICENSE
*/ */
namespace Hyperf\Amqp; namespace Hyperf\Amqp;
use Hyperf\Contract\StdoutLoggerInterface; use Hyperf\Contract\StdoutLoggerInterface;

View File

@ -9,6 +9,7 @@ declare(strict_types=1);
* @contact group@hyperf.io * @contact group@hyperf.io
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE * @license https://github.com/hyperf/hyperf/blob/master/LICENSE
*/ */
namespace Hyperf\Amqp; namespace Hyperf\Amqp;
use Hyperf\Amqp\Annotation\Consumer as ConsumerAnnotation; use Hyperf\Amqp\Annotation\Consumer as ConsumerAnnotation;

View File

@ -9,6 +9,7 @@ declare(strict_types=1);
* @contact group@hyperf.io * @contact group@hyperf.io
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE * @license https://github.com/hyperf/hyperf/blob/master/LICENSE
*/ */
namespace Hyperf\Amqp\Event; namespace Hyperf\Amqp\Event;
use Hyperf\Amqp\Message\ConsumerMessageInterface; use Hyperf\Amqp\Message\ConsumerMessageInterface;

View File

@ -9,6 +9,7 @@ declare(strict_types=1);
* @contact group@hyperf.io * @contact group@hyperf.io
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE * @license https://github.com/hyperf/hyperf/blob/master/LICENSE
*/ */
namespace Hyperf\Amqp\Event; namespace Hyperf\Amqp\Event;
use Hyperf\Amqp\Message\ConsumerMessageInterface; use Hyperf\Amqp\Message\ConsumerMessageInterface;

View File

@ -9,6 +9,7 @@ declare(strict_types=1);
* @contact group@hyperf.io * @contact group@hyperf.io
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE * @license https://github.com/hyperf/hyperf/blob/master/LICENSE
*/ */
namespace Hyperf\Amqp\Event; namespace Hyperf\Amqp\Event;
use Hyperf\Amqp\Message\ConsumerMessageInterface; use Hyperf\Amqp\Message\ConsumerMessageInterface;

View File

@ -9,6 +9,7 @@ declare(strict_types=1);
* @contact group@hyperf.io * @contact group@hyperf.io
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE * @license https://github.com/hyperf/hyperf/blob/master/LICENSE
*/ */
namespace Hyperf\Amqp\Event; namespace Hyperf\Amqp\Event;
use Hyperf\Amqp\Message\ConsumerMessageInterface; use Hyperf\Amqp\Message\ConsumerMessageInterface;

View File

@ -9,6 +9,7 @@ declare(strict_types=1);
* @contact group@hyperf.io * @contact group@hyperf.io
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE * @license https://github.com/hyperf/hyperf/blob/master/LICENSE
*/ */
namespace Hyperf\Amqp\Event; namespace Hyperf\Amqp\Event;
class WaitTimeout extends ConsumeEvent class WaitTimeout extends ConsumeEvent

View File

@ -9,6 +9,7 @@ declare(strict_types=1);
* @contact group@hyperf.io * @contact group@hyperf.io
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE * @license https://github.com/hyperf/hyperf/blob/master/LICENSE
*/ */
namespace Hyperf\Amqp\Exception; namespace Hyperf\Amqp\Exception;
use RuntimeException; use RuntimeException;

View File

@ -9,6 +9,7 @@ declare(strict_types=1);
* @contact group@hyperf.io * @contact group@hyperf.io
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE * @license https://github.com/hyperf/hyperf/blob/master/LICENSE
*/ */
namespace Hyperf\Amqp\Exception; namespace Hyperf\Amqp\Exception;
use Exception; use Exception;

View File

@ -9,6 +9,7 @@ declare(strict_types=1);
* @contact group@hyperf.io * @contact group@hyperf.io
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE * @license https://github.com/hyperf/hyperf/blob/master/LICENSE
*/ */
namespace Hyperf\Amqp\Exception; namespace Hyperf\Amqp\Exception;
use Exception; use Exception;

View File

@ -9,6 +9,7 @@ declare(strict_types=1);
* @contact group@hyperf.io * @contact group@hyperf.io
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE * @license https://github.com/hyperf/hyperf/blob/master/LICENSE
*/ */
namespace Hyperf\Amqp\Exception; namespace Hyperf\Amqp\Exception;
use RuntimeException; use RuntimeException;

View File

@ -9,6 +9,7 @@ declare(strict_types=1);
* @contact group@hyperf.io * @contact group@hyperf.io
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE * @license https://github.com/hyperf/hyperf/blob/master/LICENSE
*/ */
namespace Hyperf\Amqp\Exception; namespace Hyperf\Amqp\Exception;
use RuntimeException; use RuntimeException;

View File

@ -9,6 +9,7 @@ declare(strict_types=1);
* @contact group@hyperf.io * @contact group@hyperf.io
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE * @license https://github.com/hyperf/hyperf/blob/master/LICENSE
*/ */
namespace Hyperf\Amqp\Exception; namespace Hyperf\Amqp\Exception;
use RuntimeException; use RuntimeException;

View File

@ -9,6 +9,7 @@ declare(strict_types=1);
* @contact group@hyperf.io * @contact group@hyperf.io
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE * @license https://github.com/hyperf/hyperf/blob/master/LICENSE
*/ */
namespace Hyperf\Amqp\Exception; namespace Hyperf\Amqp\Exception;
use RuntimeException; use RuntimeException;

View File

@ -9,6 +9,7 @@ declare(strict_types=1);
* @contact group@hyperf.io * @contact group@hyperf.io
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE * @license https://github.com/hyperf/hyperf/blob/master/LICENSE
*/ */
namespace Hyperf\Amqp\IO; namespace Hyperf\Amqp\IO;
use Hyperf\Amqp\Exception\NotSupportedException; use Hyperf\Amqp\Exception\NotSupportedException;

View File

@ -9,6 +9,7 @@ declare(strict_types=1);
* @contact group@hyperf.io * @contact group@hyperf.io
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE * @license https://github.com/hyperf/hyperf/blob/master/LICENSE
*/ */
namespace Hyperf\Amqp\IO; namespace Hyperf\Amqp\IO;
use Hyperf\Amqp\Params; use Hyperf\Amqp\Params;

View File

@ -9,6 +9,7 @@ declare(strict_types=1);
* @contact group@hyperf.io * @contact group@hyperf.io
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE * @license https://github.com/hyperf/hyperf/blob/master/LICENSE
*/ */
namespace Hyperf\Amqp\IO; namespace Hyperf\Amqp\IO;
use InvalidArgumentException; use InvalidArgumentException;

View File

@ -9,6 +9,7 @@ declare(strict_types=1);
* @contact group@hyperf.io * @contact group@hyperf.io
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE * @license https://github.com/hyperf/hyperf/blob/master/LICENSE
*/ */
namespace Hyperf\Amqp\IO; namespace Hyperf\Amqp\IO;
use Hyperf\Engine\Socket; use Hyperf\Engine\Socket;

View File

@ -9,6 +9,7 @@ declare(strict_types=1);
* @contact group@hyperf.io * @contact group@hyperf.io
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE * @license https://github.com/hyperf/hyperf/blob/master/LICENSE
*/ */
namespace Hyperf\Amqp\Listener; namespace Hyperf\Amqp\Listener;
use Hyperf\Amqp\ConsumerManager; use Hyperf\Amqp\ConsumerManager;

View File

@ -9,6 +9,7 @@ declare(strict_types=1);
* @contact group@hyperf.io * @contact group@hyperf.io
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE * @license https://github.com/hyperf/hyperf/blob/master/LICENSE
*/ */
namespace Hyperf\Amqp\Listener; namespace Hyperf\Amqp\Listener;
use Doctrine\Instantiator\Instantiator; use Doctrine\Instantiator\Instantiator;

View File

@ -9,6 +9,7 @@ declare(strict_types=1);
* @contact group@hyperf.io * @contact group@hyperf.io
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE * @license https://github.com/hyperf/hyperf/blob/master/LICENSE
*/ */
namespace Hyperf\Amqp\Message; namespace Hyperf\Amqp\Message;
use Hyperf\Amqp\Builder\QueueBuilder; use Hyperf\Amqp\Builder\QueueBuilder;

View File

@ -9,6 +9,7 @@ declare(strict_types=1);
* @contact group@hyperf.io * @contact group@hyperf.io
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE * @license https://github.com/hyperf/hyperf/blob/master/LICENSE
*/ */
namespace Hyperf\Amqp\Message; namespace Hyperf\Amqp\Message;
use Hyperf\Amqp\Builder\QueueBuilder; use Hyperf\Amqp\Builder\QueueBuilder;
@ -38,7 +39,7 @@ abstract class ConsumerMessage extends Message implements ConsumerMessageInterfa
protected int $maxConsumption = 0; protected int $maxConsumption = 0;
protected int|float $waitTimeout = 0; protected float|int $waitTimeout = 0;
protected int $nums = 1; protected int $nums = 1;
@ -113,12 +114,12 @@ abstract class ConsumerMessage extends Message implements ConsumerMessageInterfa
return $this; return $this;
} }
public function getWaitTimeout(): int|float public function getWaitTimeout(): float|int
{ {
return $this->waitTimeout; return $this->waitTimeout;
} }
public function setWaitTimeout(int|float $timeout): static public function setWaitTimeout(float|int $timeout): static
{ {
$this->waitTimeout = $timeout; $this->waitTimeout = $timeout;
return $this; return $this;

View File

@ -9,6 +9,7 @@ declare(strict_types=1);
* @contact group@hyperf.io * @contact group@hyperf.io
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE * @license https://github.com/hyperf/hyperf/blob/master/LICENSE
*/ */
namespace Hyperf\Amqp\Message; namespace Hyperf\Amqp\Message;
use Hyperf\Amqp\Builder\QueueBuilder; use Hyperf\Amqp\Builder\QueueBuilder;
@ -40,9 +41,9 @@ interface ConsumerMessageInterface extends MessageInterface
public function setMaxConsumption(int $maxConsumption): static; public function setMaxConsumption(int $maxConsumption): static;
public function getWaitTimeout(): int|float; public function getWaitTimeout(): float|int;
public function setWaitTimeout(int|float $timeout): static; public function setWaitTimeout(float|int $timeout): static;
public function setNums(int $nums): static; public function setNums(int $nums): static;

View File

@ -9,6 +9,7 @@ declare(strict_types=1);
* @contact group@hyperf.io * @contact group@hyperf.io
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE * @license https://github.com/hyperf/hyperf/blob/master/LICENSE
*/ */
namespace Hyperf\Amqp\Message; namespace Hyperf\Amqp\Message;
class DynamicRpcMessage extends RpcMessage class DynamicRpcMessage extends RpcMessage

View File

@ -9,6 +9,7 @@ declare(strict_types=1);
* @contact group@hyperf.io * @contact group@hyperf.io
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE * @license https://github.com/hyperf/hyperf/blob/master/LICENSE
*/ */
namespace Hyperf\Amqp\Message; namespace Hyperf\Amqp\Message;
use Hyperf\Amqp\Builder\ExchangeBuilder; use Hyperf\Amqp\Builder\ExchangeBuilder;
@ -20,17 +21,17 @@ abstract class Message implements MessageInterface
protected string $exchange = ''; protected string $exchange = '';
protected Type|string $type = Type::TOPIC; protected string|Type $type = Type::TOPIC;
protected array|string $routingKey = ''; protected array|string $routingKey = '';
public function setType(Type|string $type): static public function setType(string|Type $type): static
{ {
$this->type = $type; $this->type = $type;
return $this; return $this;
} }
public function getType(): Type|string public function getType(): string|Type
{ {
return $this->type; return $this->type;
} }

View File

@ -9,6 +9,7 @@ declare(strict_types=1);
* @contact group@hyperf.io * @contact group@hyperf.io
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE * @license https://github.com/hyperf/hyperf/blob/master/LICENSE
*/ */
namespace Hyperf\Amqp\Message; namespace Hyperf\Amqp\Message;
use Hyperf\Amqp\Builder\ExchangeBuilder; use Hyperf\Amqp\Builder\ExchangeBuilder;
@ -22,9 +23,9 @@ interface MessageInterface
*/ */
public function getPoolName(): string; public function getPoolName(): string;
public function setType(Type|string $type); public function setType(string|Type $type);
public function getType(): Type|string; public function getType(): string|Type;
public function setExchange(string $exchange); public function setExchange(string $exchange);

View File

@ -9,6 +9,7 @@ declare(strict_types=1);
* @contact group@hyperf.io * @contact group@hyperf.io
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE * @license https://github.com/hyperf/hyperf/blob/master/LICENSE
*/ */
namespace Hyperf\Amqp\Message; namespace Hyperf\Amqp\Message;
use Hyperf\Amqp\Builder\ExchangeBuilder; use Hyperf\Amqp\Builder\ExchangeBuilder;

View File

@ -9,6 +9,7 @@ declare(strict_types=1);
* @contact group@hyperf.io * @contact group@hyperf.io
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE * @license https://github.com/hyperf/hyperf/blob/master/LICENSE
*/ */
namespace Hyperf\Amqp\Message; namespace Hyperf\Amqp\Message;
use Hyperf\Amqp\Constants; use Hyperf\Amqp\Constants;

View File

@ -9,6 +9,7 @@ declare(strict_types=1);
* @contact group@hyperf.io * @contact group@hyperf.io
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE * @license https://github.com/hyperf/hyperf/blob/master/LICENSE
*/ */
namespace Hyperf\Amqp\Message; namespace Hyperf\Amqp\Message;
interface ProducerMessageInterface extends MessageInterface interface ProducerMessageInterface extends MessageInterface

View File

@ -9,6 +9,7 @@ declare(strict_types=1);
* @contact group@hyperf.io * @contact group@hyperf.io
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE * @license https://github.com/hyperf/hyperf/blob/master/LICENSE
*/ */
namespace Hyperf\Amqp\Message; namespace Hyperf\Amqp\Message;
use Hyperf\Amqp\Builder\QueueBuilder; use Hyperf\Amqp\Builder\QueueBuilder;

View File

@ -9,6 +9,7 @@ declare(strict_types=1);
* @contact group@hyperf.io * @contact group@hyperf.io
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE * @license https://github.com/hyperf/hyperf/blob/master/LICENSE
*/ */
namespace Hyperf\Amqp\Message; namespace Hyperf\Amqp\Message;
use Hyperf\Amqp\Builder\QueueBuilder; use Hyperf\Amqp\Builder\QueueBuilder;

View File

@ -9,6 +9,7 @@ declare(strict_types=1);
* @contact group@hyperf.io * @contact group@hyperf.io
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE * @license https://github.com/hyperf/hyperf/blob/master/LICENSE
*/ */
namespace Hyperf\Amqp\Message; namespace Hyperf\Amqp\Message;
enum Type: string enum Type: string

View File

@ -9,6 +9,7 @@ declare(strict_types=1);
* @contact group@hyperf.io * @contact group@hyperf.io
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE * @license https://github.com/hyperf/hyperf/blob/master/LICENSE
*/ */
namespace Hyperf\Amqp\Packer; namespace Hyperf\Amqp\Packer;
use Hyperf\Contract\PackerInterface; use Hyperf\Contract\PackerInterface;

View File

@ -9,6 +9,7 @@ declare(strict_types=1);
* @contact group@hyperf.io * @contact group@hyperf.io
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE * @license https://github.com/hyperf/hyperf/blob/master/LICENSE
*/ */
namespace Hyperf\Amqp; namespace Hyperf\Amqp;
class Params class Params

View File

@ -9,6 +9,7 @@ declare(strict_types=1);
* @contact group@hyperf.io * @contact group@hyperf.io
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE * @license https://github.com/hyperf/hyperf/blob/master/LICENSE
*/ */
namespace Hyperf\Amqp; namespace Hyperf\Amqp;
use Hyperf\Amqp\Message\ProducerMessageInterface; use Hyperf\Amqp\Message\ProducerMessageInterface;
@ -64,7 +65,7 @@ class Producer extends Builder
private function injectMessageProperty(ProducerMessageInterface $producerMessage): void private function injectMessageProperty(ProducerMessageInterface $producerMessage): void
{ {
if (class_exists(AnnotationCollector::class)) { if (class_exists(AnnotationCollector::class)) {
/** @var null|\Hyperf\Amqp\Annotation\Producer $annotation */ /** @var null|Annotation\Producer $annotation */
$annotation = AnnotationCollector::getClassAnnotation(get_class($producerMessage), Annotation\Producer::class); $annotation = AnnotationCollector::getClassAnnotation(get_class($producerMessage), Annotation\Producer::class);
if ($annotation) { if ($annotation) {
$annotation->routingKey && $producerMessage->setRoutingKey($annotation->routingKey); $annotation->routingKey && $producerMessage->setRoutingKey($annotation->routingKey);

View File

@ -9,6 +9,7 @@ declare(strict_types=1);
* @contact group@hyperf.io * @contact group@hyperf.io
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE * @license https://github.com/hyperf/hyperf/blob/master/LICENSE
*/ */
namespace Hyperf\Amqp; namespace Hyperf\Amqp;
enum Result: string enum Result: string

View File

@ -9,6 +9,7 @@ declare(strict_types=1);
* @contact group@hyperf.io * @contact group@hyperf.io
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE * @license https://github.com/hyperf/hyperf/blob/master/LICENSE
*/ */
namespace Hyperf\Amqp; namespace Hyperf\Amqp;
use Hyperf\Engine\Channel; use Hyperf\Engine\Channel;
@ -61,7 +62,7 @@ class RpcChannel
return $this; return $this;
} }
public function wait(int $timeout): bool|AMQPMessage public function wait(int $timeout): AMQPMessage|bool
{ {
$this->channel->wait(null, false, $timeout); $this->channel->wait(null, false, $timeout);

View File

@ -9,6 +9,7 @@ declare(strict_types=1);
* @contact group@hyperf.io * @contact group@hyperf.io
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE * @license https://github.com/hyperf/hyperf/blob/master/LICENSE
*/ */
namespace Hyperf\Amqp; namespace Hyperf\Amqp;
use Hyperf\Amqp\Builder\QueueBuilder; use Hyperf\Amqp\Builder\QueueBuilder;

View File

@ -9,6 +9,7 @@ declare(strict_types=1);
* @contact group@hyperf.io * @contact group@hyperf.io
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE * @license https://github.com/hyperf/hyperf/blob/master/LICENSE
*/ */
namespace HyperfTest\Amqp; namespace HyperfTest\Amqp;
use Hyperf\Amqp\ConnectionFactory; use Hyperf\Amqp\ConnectionFactory;

View File

@ -9,6 +9,7 @@ declare(strict_types=1);
* @contact group@hyperf.io * @contact group@hyperf.io
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE * @license https://github.com/hyperf/hyperf/blob/master/LICENSE
*/ */
namespace HyperfTest\Amqp; namespace HyperfTest\Amqp;
use Hyperf\Amqp\Annotation\Consumer; use Hyperf\Amqp\Annotation\Consumer;

View File

@ -9,6 +9,7 @@ declare(strict_types=1);
* @contact group@hyperf.io * @contact group@hyperf.io
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE * @license https://github.com/hyperf/hyperf/blob/master/LICENSE
*/ */
namespace HyperfTest\Amqp; namespace HyperfTest\Amqp;
use Hyperf\Amqp\ConnectionFactory; use Hyperf\Amqp\ConnectionFactory;

View File

@ -9,6 +9,7 @@ declare(strict_types=1);
* @contact group@hyperf.io * @contact group@hyperf.io
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE * @license https://github.com/hyperf/hyperf/blob/master/LICENSE
*/ */
namespace HyperfTest\Amqp; namespace HyperfTest\Amqp;
use HyperfTest\Amqp\Stub\DelayProducerStub; use HyperfTest\Amqp\Stub\DelayProducerStub;

View File

@ -9,6 +9,7 @@ declare(strict_types=1);
* @contact group@hyperf.io * @contact group@hyperf.io
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE * @license https://github.com/hyperf/hyperf/blob/master/LICENSE
*/ */
namespace HyperfTest\Amqp\Listener; namespace HyperfTest\Amqp\Listener;
use Hyperf\Amqp\ConsumerManager; use Hyperf\Amqp\ConsumerManager;

View File

@ -9,6 +9,7 @@ declare(strict_types=1);
* @contact group@hyperf.io * @contact group@hyperf.io
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE * @license https://github.com/hyperf/hyperf/blob/master/LICENSE
*/ */
namespace HyperfTest\Amqp\Listener; namespace HyperfTest\Amqp\Listener;
use Doctrine\Instantiator\Instantiator; use Doctrine\Instantiator\Instantiator;

View File

@ -9,6 +9,7 @@ declare(strict_types=1);
* @contact group@hyperf.io * @contact group@hyperf.io
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE * @license https://github.com/hyperf/hyperf/blob/master/LICENSE
*/ */
namespace HyperfTest\Amqp\Message; namespace HyperfTest\Amqp\Message;
use Hyperf\Amqp\ConnectionFactory; use Hyperf\Amqp\ConnectionFactory;

View File

@ -9,6 +9,7 @@ declare(strict_types=1);
* @contact group@hyperf.io * @contact group@hyperf.io
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE * @license https://github.com/hyperf/hyperf/blob/master/LICENSE
*/ */
namespace HyperfTest\Amqp\Message; namespace HyperfTest\Amqp\Message;
use HyperfTest\Amqp\Stub\DemoConsumer; use HyperfTest\Amqp\Stub\DemoConsumer;

View File

@ -9,6 +9,7 @@ declare(strict_types=1);
* @contact group@hyperf.io * @contact group@hyperf.io
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE * @license https://github.com/hyperf/hyperf/blob/master/LICENSE
*/ */
namespace HyperfTest\Amqp; namespace HyperfTest\Amqp;
use Hyperf\Amqp\Params; use Hyperf\Amqp\Params;

View File

@ -9,6 +9,7 @@ declare(strict_types=1);
* @contact group@hyperf.io * @contact group@hyperf.io
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE * @license https://github.com/hyperf/hyperf/blob/master/LICENSE
*/ */
namespace HyperfTest\Amqp\Stub; namespace HyperfTest\Amqp\Stub;
use Hyperf\Amqp\AMQPConnection; use Hyperf\Amqp\AMQPConnection;

View File

@ -9,6 +9,7 @@ declare(strict_types=1);
* @contact group@hyperf.io * @contact group@hyperf.io
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE * @license https://github.com/hyperf/hyperf/blob/master/LICENSE
*/ */
namespace HyperfTest\Amqp\Stub; namespace HyperfTest\Amqp\Stub;
use Hyperf\Amqp\ConnectionFactory; use Hyperf\Amqp\ConnectionFactory;

View File

@ -9,6 +9,7 @@ declare(strict_types=1);
* @contact group@hyperf.io * @contact group@hyperf.io
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE * @license https://github.com/hyperf/hyperf/blob/master/LICENSE
*/ */
namespace HyperfTest\Amqp\Stub; namespace HyperfTest\Amqp\Stub;
use Hyperf\Amqp\Message\ConsumerDelayedMessageTrait; use Hyperf\Amqp\Message\ConsumerDelayedMessageTrait;

View File

@ -9,6 +9,7 @@ declare(strict_types=1);
* @contact group@hyperf.io * @contact group@hyperf.io
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE * @license https://github.com/hyperf/hyperf/blob/master/LICENSE
*/ */
namespace HyperfTest\Amqp\Stub; namespace HyperfTest\Amqp\Stub;
use Hyperf\Amqp\Message\ConsumerDelayedMessageTrait; use Hyperf\Amqp\Message\ConsumerDelayedMessageTrait;

View File

@ -9,6 +9,7 @@ declare(strict_types=1);
* @contact group@hyperf.io * @contact group@hyperf.io
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE * @license https://github.com/hyperf/hyperf/blob/master/LICENSE
*/ */
namespace HyperfTest\Amqp\Stub; namespace HyperfTest\Amqp\Stub;
use Hyperf\Amqp\Annotation\Producer; use Hyperf\Amqp\Annotation\Producer;
@ -23,7 +24,7 @@ class DelayProducerStub extends ProducerMessage
protected string $exchange = 'ext.hyperf.delay'; protected string $exchange = 'ext.hyperf.delay';
protected Type|string $type = Type::DIRECT; protected string|Type $type = Type::DIRECT;
protected array|string $routingKey = ''; protected array|string $routingKey = '';

View File

@ -9,6 +9,7 @@ declare(strict_types=1);
* @contact group@hyperf.io * @contact group@hyperf.io
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE * @license https://github.com/hyperf/hyperf/blob/master/LICENSE
*/ */
namespace HyperfTest\Amqp\Stub; namespace HyperfTest\Amqp\Stub;
use Hyperf\Amqp\Message\ConsumerMessage; use Hyperf\Amqp\Message\ConsumerMessage;

View File

@ -9,6 +9,7 @@ declare(strict_types=1);
* @contact group@hyperf.io * @contact group@hyperf.io
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE * @license https://github.com/hyperf/hyperf/blob/master/LICENSE
*/ */
namespace HyperfTest\Amqp\Stub; namespace HyperfTest\Amqp\Stub;
use Hyperf\Amqp\Message\ProducerMessage; use Hyperf\Amqp\Message\ProducerMessage;

View File

@ -9,6 +9,7 @@ declare(strict_types=1);
* @contact group@hyperf.io * @contact group@hyperf.io
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE * @license https://github.com/hyperf/hyperf/blob/master/LICENSE
*/ */
namespace HyperfTest\Amqp\Stub; namespace HyperfTest\Amqp\Stub;
use Hyperf\Amqp\Message\ConsumerMessage; use Hyperf\Amqp\Message\ConsumerMessage;

View File

@ -9,6 +9,7 @@ declare(strict_types=1);
* @contact group@hyperf.io * @contact group@hyperf.io
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE * @license https://github.com/hyperf/hyperf/blob/master/LICENSE
*/ */
namespace HyperfTest\Amqp\Stub; namespace HyperfTest\Amqp\Stub;
use Hyperf\Amqp\Message\ConsumerMessage; use Hyperf\Amqp\Message\ConsumerMessage;

View File

@ -9,6 +9,7 @@ declare(strict_types=1);
* @contact group@hyperf.io * @contact group@hyperf.io
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE * @license https://github.com/hyperf/hyperf/blob/master/LICENSE
*/ */
namespace Hyperf\AsyncQueue\Annotation; namespace Hyperf\AsyncQueue\Annotation;
use Attribute; use Attribute;

View File

@ -9,6 +9,7 @@ declare(strict_types=1);
* @contact group@hyperf.io * @contact group@hyperf.io
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE * @license https://github.com/hyperf/hyperf/blob/master/LICENSE
*/ */
namespace Hyperf\AsyncQueue; namespace Hyperf\AsyncQueue;
use Hyperf\Context\ApplicationContext; use Hyperf\Context\ApplicationContext;

View File

@ -9,6 +9,7 @@ declare(strict_types=1);
* @contact group@hyperf.io * @contact group@hyperf.io
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE * @license https://github.com/hyperf/hyperf/blob/master/LICENSE
*/ */
namespace Hyperf\AsyncQueue\Aspect; namespace Hyperf\AsyncQueue\Aspect;
use Hyperf\AsyncQueue\Annotation\AsyncQueueMessage; use Hyperf\AsyncQueue\Annotation\AsyncQueueMessage;

View File

@ -9,6 +9,7 @@ declare(strict_types=1);
* @contact group@hyperf.io * @contact group@hyperf.io
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE * @license https://github.com/hyperf/hyperf/blob/master/LICENSE
*/ */
namespace Hyperf\AsyncQueue\Command; namespace Hyperf\AsyncQueue\Command;
use Hyperf\AsyncQueue\Driver\DriverFactory; use Hyperf\AsyncQueue\Driver\DriverFactory;

View File

@ -9,6 +9,7 @@ declare(strict_types=1);
* @contact group@hyperf.io * @contact group@hyperf.io
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE * @license https://github.com/hyperf/hyperf/blob/master/LICENSE
*/ */
namespace Hyperf\AsyncQueue\Command; namespace Hyperf\AsyncQueue\Command;
use Hyperf\AsyncQueue\Driver\DriverFactory; use Hyperf\AsyncQueue\Driver\DriverFactory;

View File

@ -9,6 +9,7 @@ declare(strict_types=1);
* @contact group@hyperf.io * @contact group@hyperf.io
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE * @license https://github.com/hyperf/hyperf/blob/master/LICENSE
*/ */
namespace Hyperf\AsyncQueue\Command; namespace Hyperf\AsyncQueue\Command;
use Hyperf\AsyncQueue\Driver\DriverFactory; use Hyperf\AsyncQueue\Driver\DriverFactory;

View File

@ -9,6 +9,7 @@ declare(strict_types=1);
* @contact group@hyperf.io * @contact group@hyperf.io
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE * @license https://github.com/hyperf/hyperf/blob/master/LICENSE
*/ */
namespace Hyperf\AsyncQueue; namespace Hyperf\AsyncQueue;
use Hyperf\AsyncQueue\Aspect\AsyncQueueAspect; use Hyperf\AsyncQueue\Aspect\AsyncQueueAspect;

View File

@ -9,6 +9,7 @@ declare(strict_types=1);
* @contact group@hyperf.io * @contact group@hyperf.io
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE * @license https://github.com/hyperf/hyperf/blob/master/LICENSE
*/ */
namespace Hyperf\AsyncQueue\Driver; namespace Hyperf\AsyncQueue\Driver;
use Hyperf\AsyncQueue\Exception\InvalidQueueException; use Hyperf\AsyncQueue\Exception\InvalidQueueException;

View File

@ -9,6 +9,7 @@ declare(strict_types=1);
* @contact group@hyperf.io * @contact group@hyperf.io
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE * @license https://github.com/hyperf/hyperf/blob/master/LICENSE
*/ */
namespace Hyperf\AsyncQueue\Driver; namespace Hyperf\AsyncQueue\Driver;
use Hyperf\AsyncQueue\Event\AfterHandle; use Hyperf\AsyncQueue\Event\AfterHandle;

View File

@ -9,6 +9,7 @@ declare(strict_types=1);
* @contact group@hyperf.io * @contact group@hyperf.io
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE * @license https://github.com/hyperf/hyperf/blob/master/LICENSE
*/ */
namespace Hyperf\AsyncQueue\Driver; namespace Hyperf\AsyncQueue\Driver;
use Hyperf\AsyncQueue\Exception\InvalidDriverException; use Hyperf\AsyncQueue\Exception\InvalidDriverException;

View File

@ -9,6 +9,7 @@ declare(strict_types=1);
* @contact group@hyperf.io * @contact group@hyperf.io
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE * @license https://github.com/hyperf/hyperf/blob/master/LICENSE
*/ */
namespace Hyperf\AsyncQueue\Driver; namespace Hyperf\AsyncQueue\Driver;
use Hyperf\AsyncQueue\JobInterface; use Hyperf\AsyncQueue\JobInterface;

View File

@ -9,6 +9,7 @@ declare(strict_types=1);
* @contact group@hyperf.io * @contact group@hyperf.io
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE * @license https://github.com/hyperf/hyperf/blob/master/LICENSE
*/ */
namespace Hyperf\AsyncQueue\Driver; namespace Hyperf\AsyncQueue\Driver;
use Hyperf\AsyncQueue\Exception\InvalidQueueException; use Hyperf\AsyncQueue\Exception\InvalidQueueException;

View File

@ -9,6 +9,7 @@ declare(strict_types=1);
* @contact group@hyperf.io * @contact group@hyperf.io
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE * @license https://github.com/hyperf/hyperf/blob/master/LICENSE
*/ */
namespace Hyperf\AsyncQueue; namespace Hyperf\AsyncQueue;
use Hyperf\Context\Context; use Hyperf\Context\Context;

View File

@ -9,6 +9,7 @@ declare(strict_types=1);
* @contact group@hyperf.io * @contact group@hyperf.io
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE * @license https://github.com/hyperf/hyperf/blob/master/LICENSE
*/ */
namespace Hyperf\AsyncQueue\Event; namespace Hyperf\AsyncQueue\Event;
class AfterHandle extends Event class AfterHandle extends Event

View File

@ -9,6 +9,7 @@ declare(strict_types=1);
* @contact group@hyperf.io * @contact group@hyperf.io
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE * @license https://github.com/hyperf/hyperf/blob/master/LICENSE
*/ */
namespace Hyperf\AsyncQueue\Event; namespace Hyperf\AsyncQueue\Event;
class BeforeHandle extends Event class BeforeHandle extends Event

View File

@ -9,6 +9,7 @@ declare(strict_types=1);
* @contact group@hyperf.io * @contact group@hyperf.io
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE * @license https://github.com/hyperf/hyperf/blob/master/LICENSE
*/ */
namespace Hyperf\AsyncQueue\Event; namespace Hyperf\AsyncQueue\Event;
use Hyperf\AsyncQueue\MessageInterface; use Hyperf\AsyncQueue\MessageInterface;

View File

@ -9,6 +9,7 @@ declare(strict_types=1);
* @contact group@hyperf.io * @contact group@hyperf.io
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE * @license https://github.com/hyperf/hyperf/blob/master/LICENSE
*/ */
namespace Hyperf\AsyncQueue\Event; namespace Hyperf\AsyncQueue\Event;
use Hyperf\AsyncQueue\MessageInterface; use Hyperf\AsyncQueue\MessageInterface;

View File

@ -9,6 +9,7 @@ declare(strict_types=1);
* @contact group@hyperf.io * @contact group@hyperf.io
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE * @license https://github.com/hyperf/hyperf/blob/master/LICENSE
*/ */
namespace Hyperf\AsyncQueue\Event; namespace Hyperf\AsyncQueue\Event;
use Hyperf\AsyncQueue\Driver\DriverInterface; use Hyperf\AsyncQueue\Driver\DriverInterface;

View File

@ -9,6 +9,7 @@ declare(strict_types=1);
* @contact group@hyperf.io * @contact group@hyperf.io
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE * @license https://github.com/hyperf/hyperf/blob/master/LICENSE
*/ */
namespace Hyperf\AsyncQueue\Event; namespace Hyperf\AsyncQueue\Event;
use Hyperf\AsyncQueue\MessageInterface; use Hyperf\AsyncQueue\MessageInterface;

View File

@ -9,6 +9,7 @@ declare(strict_types=1);
* @contact group@hyperf.io * @contact group@hyperf.io
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE * @license https://github.com/hyperf/hyperf/blob/master/LICENSE
*/ */
namespace Hyperf\AsyncQueue\Exception; namespace Hyperf\AsyncQueue\Exception;
use RuntimeException; use RuntimeException;

View File

@ -9,6 +9,7 @@ declare(strict_types=1);
* @contact group@hyperf.io * @contact group@hyperf.io
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE * @license https://github.com/hyperf/hyperf/blob/master/LICENSE
*/ */
namespace Hyperf\AsyncQueue\Exception; namespace Hyperf\AsyncQueue\Exception;
use RuntimeException; use RuntimeException;

View File

@ -9,6 +9,7 @@ declare(strict_types=1);
* @contact group@hyperf.io * @contact group@hyperf.io
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE * @license https://github.com/hyperf/hyperf/blob/master/LICENSE
*/ */
namespace Hyperf\AsyncQueue\Exception; namespace Hyperf\AsyncQueue\Exception;
use RuntimeException; use RuntimeException;

View File

@ -9,6 +9,7 @@ declare(strict_types=1);
* @contact group@hyperf.io * @contact group@hyperf.io
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE * @license https://github.com/hyperf/hyperf/blob/master/LICENSE
*/ */
namespace Hyperf\AsyncQueue; namespace Hyperf\AsyncQueue;
use Hyperf\AsyncQueue\Driver\DriverFactory; use Hyperf\AsyncQueue\Driver\DriverFactory;

View File

@ -9,6 +9,7 @@ declare(strict_types=1);
* @contact group@hyperf.io * @contact group@hyperf.io
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE * @license https://github.com/hyperf/hyperf/blob/master/LICENSE
*/ */
namespace Hyperf\AsyncQueue; namespace Hyperf\AsyncQueue;
use Hyperf\Contract\CompressInterface; use Hyperf\Contract\CompressInterface;

View File

@ -9,6 +9,7 @@ declare(strict_types=1);
* @contact group@hyperf.io * @contact group@hyperf.io
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE * @license https://github.com/hyperf/hyperf/blob/master/LICENSE
*/ */
namespace Hyperf\AsyncQueue; namespace Hyperf\AsyncQueue;
use Throwable; use Throwable;

View File

@ -9,6 +9,7 @@ declare(strict_types=1);
* @contact group@hyperf.io * @contact group@hyperf.io
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE * @license https://github.com/hyperf/hyperf/blob/master/LICENSE
*/ */
namespace Hyperf\AsyncQueue; namespace Hyperf\AsyncQueue;
use Hyperf\Contract\CompressInterface; use Hyperf\Contract\CompressInterface;

View File

@ -9,6 +9,7 @@ declare(strict_types=1);
* @contact group@hyperf.io * @contact group@hyperf.io
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE * @license https://github.com/hyperf/hyperf/blob/master/LICENSE
*/ */
namespace Hyperf\AsyncQueue\Listener; namespace Hyperf\AsyncQueue\Listener;
use Hyperf\AsyncQueue\AnnotationJob; use Hyperf\AsyncQueue\AnnotationJob;

View File

@ -9,6 +9,7 @@ declare(strict_types=1);
* @contact group@hyperf.io * @contact group@hyperf.io
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE * @license https://github.com/hyperf/hyperf/blob/master/LICENSE
*/ */
namespace Hyperf\AsyncQueue\Listener; namespace Hyperf\AsyncQueue\Listener;
use Hyperf\AsyncQueue\Event\QueueLength; use Hyperf\AsyncQueue\Event\QueueLength;

Some files were not shown because too many files have changed in this diff Show More