mirror of
https://gitee.com/hyperf/hyperf.git
synced 2024-11-29 10:17:39 +08:00
Format code by the latest cs-fixer
. (#6617)
This commit is contained in:
parent
ddc1a2537a
commit
fc488034b9
@ -94,7 +94,9 @@ return (new PhpCsFixer\Config())
|
||||
'single_quote' => true,
|
||||
'standardize_not_equals' => 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(
|
||||
PhpCsFixer\Finder::create()
|
||||
|
@ -4,6 +4,10 @@
|
||||
|
||||
- [#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
|
||||
|
||||
## Fixed
|
||||
|
@ -32,4 +32,4 @@ AstVisitorRegistry::insert(ProxyCallVisitor::class);
|
||||
// Register Property Handler.
|
||||
RegisterInjectPropertyHandler::register();
|
||||
|
||||
(new RegisterPropertyHandlerListener())->process(new \stdClass());
|
||||
(new RegisterPropertyHandlerListener())->process(new stdClass());
|
||||
|
@ -38,7 +38,7 @@
|
||||
"fakerphp/faker": "^1.23",
|
||||
"fig/http-message-util": "^1.1.2",
|
||||
"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/protobuf": "^3.6.1",
|
||||
"grpc/grpc": "^1.15",
|
||||
|
@ -16,7 +16,6 @@ parameters:
|
||||
- %currentWorkingDirectory%/src/*/class_map/*
|
||||
- %currentWorkingDirectory%/src/di/src/Resolver/FactoryResolver.php
|
||||
- %currentWorkingDirectory%/src/config-zookeeper/src/Client.php
|
||||
- %currentWorkingDirectory%/src/contract/*
|
||||
- %currentWorkingDirectory%/src/database/*
|
||||
- %currentWorkingDirectory%/src/database-pgsql/*
|
||||
- %currentWorkingDirectory%/src/db/src/PgSQL/*
|
||||
@ -25,7 +24,6 @@ parameters:
|
||||
- %currentWorkingDirectory%/src/grpc/*
|
||||
- %currentWorkingDirectory%/src/grpc-server/*
|
||||
- %currentWorkingDirectory%/src/ide-helper/*
|
||||
- %currentWorkingDirectory%/src/swagger/*
|
||||
- %currentWorkingDirectory%/src/validation/*
|
||||
- %currentWorkingDirectory%/src/view/src/Engine/*
|
||||
- %currentWorkingDirectory%/src/server/src/SwowServer.php
|
||||
|
@ -9,6 +9,7 @@ declare(strict_types=1);
|
||||
* @contact group@hyperf.io
|
||||
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
|
||||
*/
|
||||
|
||||
namespace Hyperf\Amqp;
|
||||
|
||||
use Hyperf\Amqp\Exception\LoopBrokenException;
|
||||
|
@ -9,6 +9,7 @@ declare(strict_types=1);
|
||||
* @contact group@hyperf.io
|
||||
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
|
||||
*/
|
||||
|
||||
namespace Hyperf\Amqp\Annotation;
|
||||
|
||||
use Attribute;
|
||||
|
@ -9,6 +9,7 @@ declare(strict_types=1);
|
||||
* @contact group@hyperf.io
|
||||
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
|
||||
*/
|
||||
|
||||
namespace Hyperf\Amqp\Annotation;
|
||||
|
||||
use Attribute;
|
||||
|
@ -9,6 +9,7 @@ declare(strict_types=1);
|
||||
* @contact group@hyperf.io
|
||||
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
|
||||
*/
|
||||
|
||||
namespace Hyperf\Amqp;
|
||||
|
||||
use Hyperf\Amqp\Message\MessageInterface;
|
||||
|
@ -9,6 +9,7 @@ declare(strict_types=1);
|
||||
* @contact group@hyperf.io
|
||||
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
|
||||
*/
|
||||
|
||||
namespace Hyperf\Amqp\Builder;
|
||||
|
||||
use PhpAmqpLib\Wire\AMQPTable;
|
||||
|
@ -9,6 +9,7 @@ declare(strict_types=1);
|
||||
* @contact group@hyperf.io
|
||||
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
|
||||
*/
|
||||
|
||||
namespace Hyperf\Amqp\Builder;
|
||||
|
||||
use Hyperf\Amqp\Message\Type;
|
||||
@ -32,7 +33,7 @@ class ExchangeBuilder extends Builder
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function getType(): Type|string
|
||||
public function getType(): string|Type
|
||||
{
|
||||
return $this->type;
|
||||
}
|
||||
@ -42,7 +43,7 @@ class ExchangeBuilder extends Builder
|
||||
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;
|
||||
return $this;
|
||||
|
@ -9,6 +9,7 @@ declare(strict_types=1);
|
||||
* @contact group@hyperf.io
|
||||
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
|
||||
*/
|
||||
|
||||
namespace Hyperf\Amqp\Builder;
|
||||
|
||||
use PhpAmqpLib\Wire\AMQPTable;
|
||||
|
@ -9,6 +9,7 @@ declare(strict_types=1);
|
||||
* @contact group@hyperf.io
|
||||
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
|
||||
*/
|
||||
|
||||
namespace Hyperf\Amqp;
|
||||
|
||||
use Hyperf\Amqp\Listener\BeforeMainServerStartListener;
|
||||
|
@ -9,6 +9,7 @@ declare(strict_types=1);
|
||||
* @contact group@hyperf.io
|
||||
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
|
||||
*/
|
||||
|
||||
namespace Hyperf\Amqp;
|
||||
|
||||
use Hyperf\Amqp\Exception\NotSupportedException;
|
||||
|
@ -9,6 +9,7 @@ declare(strict_types=1);
|
||||
* @contact group@hyperf.io
|
||||
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
|
||||
*/
|
||||
|
||||
namespace Hyperf\Amqp;
|
||||
|
||||
class Constants
|
||||
|
@ -9,6 +9,7 @@ declare(strict_types=1);
|
||||
* @contact group@hyperf.io
|
||||
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
|
||||
*/
|
||||
|
||||
namespace Hyperf\Amqp;
|
||||
|
||||
use Hyperf\Amqp\Event\AfterConsume;
|
||||
|
@ -9,6 +9,7 @@ declare(strict_types=1);
|
||||
* @contact group@hyperf.io
|
||||
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
|
||||
*/
|
||||
|
||||
namespace Hyperf\Amqp;
|
||||
|
||||
use Hyperf\Contract\StdoutLoggerInterface;
|
||||
|
@ -9,6 +9,7 @@ declare(strict_types=1);
|
||||
* @contact group@hyperf.io
|
||||
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
|
||||
*/
|
||||
|
||||
namespace Hyperf\Amqp;
|
||||
|
||||
use Hyperf\Amqp\Annotation\Consumer as ConsumerAnnotation;
|
||||
|
@ -9,6 +9,7 @@ declare(strict_types=1);
|
||||
* @contact group@hyperf.io
|
||||
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
|
||||
*/
|
||||
|
||||
namespace Hyperf\Amqp\Event;
|
||||
|
||||
use Hyperf\Amqp\Message\ConsumerMessageInterface;
|
||||
|
@ -9,6 +9,7 @@ declare(strict_types=1);
|
||||
* @contact group@hyperf.io
|
||||
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
|
||||
*/
|
||||
|
||||
namespace Hyperf\Amqp\Event;
|
||||
|
||||
use Hyperf\Amqp\Message\ConsumerMessageInterface;
|
||||
|
@ -9,6 +9,7 @@ declare(strict_types=1);
|
||||
* @contact group@hyperf.io
|
||||
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
|
||||
*/
|
||||
|
||||
namespace Hyperf\Amqp\Event;
|
||||
|
||||
use Hyperf\Amqp\Message\ConsumerMessageInterface;
|
||||
|
@ -9,6 +9,7 @@ declare(strict_types=1);
|
||||
* @contact group@hyperf.io
|
||||
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
|
||||
*/
|
||||
|
||||
namespace Hyperf\Amqp\Event;
|
||||
|
||||
use Hyperf\Amqp\Message\ConsumerMessageInterface;
|
||||
|
@ -9,6 +9,7 @@ declare(strict_types=1);
|
||||
* @contact group@hyperf.io
|
||||
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
|
||||
*/
|
||||
|
||||
namespace Hyperf\Amqp\Event;
|
||||
|
||||
class WaitTimeout extends ConsumeEvent
|
||||
|
@ -9,6 +9,7 @@ declare(strict_types=1);
|
||||
* @contact group@hyperf.io
|
||||
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
|
||||
*/
|
||||
|
||||
namespace Hyperf\Amqp\Exception;
|
||||
|
||||
use RuntimeException;
|
||||
|
@ -9,6 +9,7 @@ declare(strict_types=1);
|
||||
* @contact group@hyperf.io
|
||||
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
|
||||
*/
|
||||
|
||||
namespace Hyperf\Amqp\Exception;
|
||||
|
||||
use Exception;
|
||||
|
@ -9,6 +9,7 @@ declare(strict_types=1);
|
||||
* @contact group@hyperf.io
|
||||
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
|
||||
*/
|
||||
|
||||
namespace Hyperf\Amqp\Exception;
|
||||
|
||||
use Exception;
|
||||
|
@ -9,6 +9,7 @@ declare(strict_types=1);
|
||||
* @contact group@hyperf.io
|
||||
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
|
||||
*/
|
||||
|
||||
namespace Hyperf\Amqp\Exception;
|
||||
|
||||
use RuntimeException;
|
||||
|
@ -9,6 +9,7 @@ declare(strict_types=1);
|
||||
* @contact group@hyperf.io
|
||||
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
|
||||
*/
|
||||
|
||||
namespace Hyperf\Amqp\Exception;
|
||||
|
||||
use RuntimeException;
|
||||
|
@ -9,6 +9,7 @@ declare(strict_types=1);
|
||||
* @contact group@hyperf.io
|
||||
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
|
||||
*/
|
||||
|
||||
namespace Hyperf\Amqp\Exception;
|
||||
|
||||
use RuntimeException;
|
||||
|
@ -9,6 +9,7 @@ declare(strict_types=1);
|
||||
* @contact group@hyperf.io
|
||||
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
|
||||
*/
|
||||
|
||||
namespace Hyperf\Amqp\Exception;
|
||||
|
||||
use RuntimeException;
|
||||
|
@ -9,6 +9,7 @@ declare(strict_types=1);
|
||||
* @contact group@hyperf.io
|
||||
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
|
||||
*/
|
||||
|
||||
namespace Hyperf\Amqp\IO;
|
||||
|
||||
use Hyperf\Amqp\Exception\NotSupportedException;
|
||||
|
@ -9,6 +9,7 @@ declare(strict_types=1);
|
||||
* @contact group@hyperf.io
|
||||
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
|
||||
*/
|
||||
|
||||
namespace Hyperf\Amqp\IO;
|
||||
|
||||
use Hyperf\Amqp\Params;
|
||||
|
@ -9,6 +9,7 @@ declare(strict_types=1);
|
||||
* @contact group@hyperf.io
|
||||
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
|
||||
*/
|
||||
|
||||
namespace Hyperf\Amqp\IO;
|
||||
|
||||
use InvalidArgumentException;
|
||||
|
@ -9,6 +9,7 @@ declare(strict_types=1);
|
||||
* @contact group@hyperf.io
|
||||
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
|
||||
*/
|
||||
|
||||
namespace Hyperf\Amqp\IO;
|
||||
|
||||
use Hyperf\Engine\Socket;
|
||||
|
@ -9,6 +9,7 @@ declare(strict_types=1);
|
||||
* @contact group@hyperf.io
|
||||
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
|
||||
*/
|
||||
|
||||
namespace Hyperf\Amqp\Listener;
|
||||
|
||||
use Hyperf\Amqp\ConsumerManager;
|
||||
|
@ -9,6 +9,7 @@ declare(strict_types=1);
|
||||
* @contact group@hyperf.io
|
||||
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
|
||||
*/
|
||||
|
||||
namespace Hyperf\Amqp\Listener;
|
||||
|
||||
use Doctrine\Instantiator\Instantiator;
|
||||
|
@ -9,6 +9,7 @@ declare(strict_types=1);
|
||||
* @contact group@hyperf.io
|
||||
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
|
||||
*/
|
||||
|
||||
namespace Hyperf\Amqp\Message;
|
||||
|
||||
use Hyperf\Amqp\Builder\QueueBuilder;
|
||||
|
@ -9,6 +9,7 @@ declare(strict_types=1);
|
||||
* @contact group@hyperf.io
|
||||
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
|
||||
*/
|
||||
|
||||
namespace Hyperf\Amqp\Message;
|
||||
|
||||
use Hyperf\Amqp\Builder\QueueBuilder;
|
||||
@ -38,7 +39,7 @@ abstract class ConsumerMessage extends Message implements ConsumerMessageInterfa
|
||||
|
||||
protected int $maxConsumption = 0;
|
||||
|
||||
protected int|float $waitTimeout = 0;
|
||||
protected float|int $waitTimeout = 0;
|
||||
|
||||
protected int $nums = 1;
|
||||
|
||||
@ -113,12 +114,12 @@ abstract class ConsumerMessage extends Message implements ConsumerMessageInterfa
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function getWaitTimeout(): int|float
|
||||
public function getWaitTimeout(): float|int
|
||||
{
|
||||
return $this->waitTimeout;
|
||||
}
|
||||
|
||||
public function setWaitTimeout(int|float $timeout): static
|
||||
public function setWaitTimeout(float|int $timeout): static
|
||||
{
|
||||
$this->waitTimeout = $timeout;
|
||||
return $this;
|
||||
|
@ -9,6 +9,7 @@ declare(strict_types=1);
|
||||
* @contact group@hyperf.io
|
||||
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
|
||||
*/
|
||||
|
||||
namespace Hyperf\Amqp\Message;
|
||||
|
||||
use Hyperf\Amqp\Builder\QueueBuilder;
|
||||
@ -40,9 +41,9 @@ interface ConsumerMessageInterface extends MessageInterface
|
||||
|
||||
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;
|
||||
|
||||
|
@ -9,6 +9,7 @@ declare(strict_types=1);
|
||||
* @contact group@hyperf.io
|
||||
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
|
||||
*/
|
||||
|
||||
namespace Hyperf\Amqp\Message;
|
||||
|
||||
class DynamicRpcMessage extends RpcMessage
|
||||
|
@ -9,6 +9,7 @@ declare(strict_types=1);
|
||||
* @contact group@hyperf.io
|
||||
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
|
||||
*/
|
||||
|
||||
namespace Hyperf\Amqp\Message;
|
||||
|
||||
use Hyperf\Amqp\Builder\ExchangeBuilder;
|
||||
@ -20,17 +21,17 @@ abstract class Message implements MessageInterface
|
||||
|
||||
protected string $exchange = '';
|
||||
|
||||
protected Type|string $type = Type::TOPIC;
|
||||
protected string|Type $type = Type::TOPIC;
|
||||
|
||||
protected array|string $routingKey = '';
|
||||
|
||||
public function setType(Type|string $type): static
|
||||
public function setType(string|Type $type): static
|
||||
{
|
||||
$this->type = $type;
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function getType(): Type|string
|
||||
public function getType(): string|Type
|
||||
{
|
||||
return $this->type;
|
||||
}
|
||||
|
@ -9,6 +9,7 @@ declare(strict_types=1);
|
||||
* @contact group@hyperf.io
|
||||
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
|
||||
*/
|
||||
|
||||
namespace Hyperf\Amqp\Message;
|
||||
|
||||
use Hyperf\Amqp\Builder\ExchangeBuilder;
|
||||
@ -22,9 +23,9 @@ interface MessageInterface
|
||||
*/
|
||||
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);
|
||||
|
||||
|
@ -9,6 +9,7 @@ declare(strict_types=1);
|
||||
* @contact group@hyperf.io
|
||||
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
|
||||
*/
|
||||
|
||||
namespace Hyperf\Amqp\Message;
|
||||
|
||||
use Hyperf\Amqp\Builder\ExchangeBuilder;
|
||||
|
@ -9,6 +9,7 @@ declare(strict_types=1);
|
||||
* @contact group@hyperf.io
|
||||
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
|
||||
*/
|
||||
|
||||
namespace Hyperf\Amqp\Message;
|
||||
|
||||
use Hyperf\Amqp\Constants;
|
||||
|
@ -9,6 +9,7 @@ declare(strict_types=1);
|
||||
* @contact group@hyperf.io
|
||||
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
|
||||
*/
|
||||
|
||||
namespace Hyperf\Amqp\Message;
|
||||
|
||||
interface ProducerMessageInterface extends MessageInterface
|
||||
|
@ -9,6 +9,7 @@ declare(strict_types=1);
|
||||
* @contact group@hyperf.io
|
||||
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
|
||||
*/
|
||||
|
||||
namespace Hyperf\Amqp\Message;
|
||||
|
||||
use Hyperf\Amqp\Builder\QueueBuilder;
|
||||
|
@ -9,6 +9,7 @@ declare(strict_types=1);
|
||||
* @contact group@hyperf.io
|
||||
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
|
||||
*/
|
||||
|
||||
namespace Hyperf\Amqp\Message;
|
||||
|
||||
use Hyperf\Amqp\Builder\QueueBuilder;
|
||||
|
@ -9,6 +9,7 @@ declare(strict_types=1);
|
||||
* @contact group@hyperf.io
|
||||
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
|
||||
*/
|
||||
|
||||
namespace Hyperf\Amqp\Message;
|
||||
|
||||
enum Type: string
|
||||
|
@ -9,6 +9,7 @@ declare(strict_types=1);
|
||||
* @contact group@hyperf.io
|
||||
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
|
||||
*/
|
||||
|
||||
namespace Hyperf\Amqp\Packer;
|
||||
|
||||
use Hyperf\Contract\PackerInterface;
|
||||
|
@ -9,6 +9,7 @@ declare(strict_types=1);
|
||||
* @contact group@hyperf.io
|
||||
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
|
||||
*/
|
||||
|
||||
namespace Hyperf\Amqp;
|
||||
|
||||
class Params
|
||||
|
@ -9,6 +9,7 @@ declare(strict_types=1);
|
||||
* @contact group@hyperf.io
|
||||
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
|
||||
*/
|
||||
|
||||
namespace Hyperf\Amqp;
|
||||
|
||||
use Hyperf\Amqp\Message\ProducerMessageInterface;
|
||||
@ -64,7 +65,7 @@ class Producer extends Builder
|
||||
private function injectMessageProperty(ProducerMessageInterface $producerMessage): void
|
||||
{
|
||||
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);
|
||||
if ($annotation) {
|
||||
$annotation->routingKey && $producerMessage->setRoutingKey($annotation->routingKey);
|
||||
|
@ -9,6 +9,7 @@ declare(strict_types=1);
|
||||
* @contact group@hyperf.io
|
||||
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
|
||||
*/
|
||||
|
||||
namespace Hyperf\Amqp;
|
||||
|
||||
enum Result: string
|
||||
|
@ -9,6 +9,7 @@ declare(strict_types=1);
|
||||
* @contact group@hyperf.io
|
||||
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
|
||||
*/
|
||||
|
||||
namespace Hyperf\Amqp;
|
||||
|
||||
use Hyperf\Engine\Channel;
|
||||
@ -61,7 +62,7 @@ class RpcChannel
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function wait(int $timeout): bool|AMQPMessage
|
||||
public function wait(int $timeout): AMQPMessage|bool
|
||||
{
|
||||
$this->channel->wait(null, false, $timeout);
|
||||
|
||||
|
@ -9,6 +9,7 @@ declare(strict_types=1);
|
||||
* @contact group@hyperf.io
|
||||
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
|
||||
*/
|
||||
|
||||
namespace Hyperf\Amqp;
|
||||
|
||||
use Hyperf\Amqp\Builder\QueueBuilder;
|
||||
|
@ -9,6 +9,7 @@ declare(strict_types=1);
|
||||
* @contact group@hyperf.io
|
||||
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
|
||||
*/
|
||||
|
||||
namespace HyperfTest\Amqp;
|
||||
|
||||
use Hyperf\Amqp\ConnectionFactory;
|
||||
|
@ -9,6 +9,7 @@ declare(strict_types=1);
|
||||
* @contact group@hyperf.io
|
||||
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
|
||||
*/
|
||||
|
||||
namespace HyperfTest\Amqp;
|
||||
|
||||
use Hyperf\Amqp\Annotation\Consumer;
|
||||
|
@ -9,6 +9,7 @@ declare(strict_types=1);
|
||||
* @contact group@hyperf.io
|
||||
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
|
||||
*/
|
||||
|
||||
namespace HyperfTest\Amqp;
|
||||
|
||||
use Hyperf\Amqp\ConnectionFactory;
|
||||
|
@ -9,6 +9,7 @@ declare(strict_types=1);
|
||||
* @contact group@hyperf.io
|
||||
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
|
||||
*/
|
||||
|
||||
namespace HyperfTest\Amqp;
|
||||
|
||||
use HyperfTest\Amqp\Stub\DelayProducerStub;
|
||||
|
@ -9,6 +9,7 @@ declare(strict_types=1);
|
||||
* @contact group@hyperf.io
|
||||
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
|
||||
*/
|
||||
|
||||
namespace HyperfTest\Amqp\Listener;
|
||||
|
||||
use Hyperf\Amqp\ConsumerManager;
|
||||
|
@ -9,6 +9,7 @@ declare(strict_types=1);
|
||||
* @contact group@hyperf.io
|
||||
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
|
||||
*/
|
||||
|
||||
namespace HyperfTest\Amqp\Listener;
|
||||
|
||||
use Doctrine\Instantiator\Instantiator;
|
||||
|
@ -9,6 +9,7 @@ declare(strict_types=1);
|
||||
* @contact group@hyperf.io
|
||||
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
|
||||
*/
|
||||
|
||||
namespace HyperfTest\Amqp\Message;
|
||||
|
||||
use Hyperf\Amqp\ConnectionFactory;
|
||||
|
@ -9,6 +9,7 @@ declare(strict_types=1);
|
||||
* @contact group@hyperf.io
|
||||
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
|
||||
*/
|
||||
|
||||
namespace HyperfTest\Amqp\Message;
|
||||
|
||||
use HyperfTest\Amqp\Stub\DemoConsumer;
|
||||
|
@ -9,6 +9,7 @@ declare(strict_types=1);
|
||||
* @contact group@hyperf.io
|
||||
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
|
||||
*/
|
||||
|
||||
namespace HyperfTest\Amqp;
|
||||
|
||||
use Hyperf\Amqp\Params;
|
||||
|
@ -9,6 +9,7 @@ declare(strict_types=1);
|
||||
* @contact group@hyperf.io
|
||||
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
|
||||
*/
|
||||
|
||||
namespace HyperfTest\Amqp\Stub;
|
||||
|
||||
use Hyperf\Amqp\AMQPConnection;
|
||||
|
@ -9,6 +9,7 @@ declare(strict_types=1);
|
||||
* @contact group@hyperf.io
|
||||
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
|
||||
*/
|
||||
|
||||
namespace HyperfTest\Amqp\Stub;
|
||||
|
||||
use Hyperf\Amqp\ConnectionFactory;
|
||||
|
@ -9,6 +9,7 @@ declare(strict_types=1);
|
||||
* @contact group@hyperf.io
|
||||
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
|
||||
*/
|
||||
|
||||
namespace HyperfTest\Amqp\Stub;
|
||||
|
||||
use Hyperf\Amqp\Message\ConsumerDelayedMessageTrait;
|
||||
|
@ -9,6 +9,7 @@ declare(strict_types=1);
|
||||
* @contact group@hyperf.io
|
||||
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
|
||||
*/
|
||||
|
||||
namespace HyperfTest\Amqp\Stub;
|
||||
|
||||
use Hyperf\Amqp\Message\ConsumerDelayedMessageTrait;
|
||||
|
@ -9,6 +9,7 @@ declare(strict_types=1);
|
||||
* @contact group@hyperf.io
|
||||
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
|
||||
*/
|
||||
|
||||
namespace HyperfTest\Amqp\Stub;
|
||||
|
||||
use Hyperf\Amqp\Annotation\Producer;
|
||||
@ -23,7 +24,7 @@ class DelayProducerStub extends ProducerMessage
|
||||
|
||||
protected string $exchange = 'ext.hyperf.delay';
|
||||
|
||||
protected Type|string $type = Type::DIRECT;
|
||||
protected string|Type $type = Type::DIRECT;
|
||||
|
||||
protected array|string $routingKey = '';
|
||||
|
||||
|
@ -9,6 +9,7 @@ declare(strict_types=1);
|
||||
* @contact group@hyperf.io
|
||||
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
|
||||
*/
|
||||
|
||||
namespace HyperfTest\Amqp\Stub;
|
||||
|
||||
use Hyperf\Amqp\Message\ConsumerMessage;
|
||||
|
@ -9,6 +9,7 @@ declare(strict_types=1);
|
||||
* @contact group@hyperf.io
|
||||
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
|
||||
*/
|
||||
|
||||
namespace HyperfTest\Amqp\Stub;
|
||||
|
||||
use Hyperf\Amqp\Message\ProducerMessage;
|
||||
|
@ -9,6 +9,7 @@ declare(strict_types=1);
|
||||
* @contact group@hyperf.io
|
||||
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
|
||||
*/
|
||||
|
||||
namespace HyperfTest\Amqp\Stub;
|
||||
|
||||
use Hyperf\Amqp\Message\ConsumerMessage;
|
||||
|
@ -9,6 +9,7 @@ declare(strict_types=1);
|
||||
* @contact group@hyperf.io
|
||||
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
|
||||
*/
|
||||
|
||||
namespace HyperfTest\Amqp\Stub;
|
||||
|
||||
use Hyperf\Amqp\Message\ConsumerMessage;
|
||||
|
@ -9,6 +9,7 @@ declare(strict_types=1);
|
||||
* @contact group@hyperf.io
|
||||
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
|
||||
*/
|
||||
|
||||
namespace Hyperf\AsyncQueue\Annotation;
|
||||
|
||||
use Attribute;
|
||||
|
@ -9,6 +9,7 @@ declare(strict_types=1);
|
||||
* @contact group@hyperf.io
|
||||
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
|
||||
*/
|
||||
|
||||
namespace Hyperf\AsyncQueue;
|
||||
|
||||
use Hyperf\Context\ApplicationContext;
|
||||
|
@ -9,6 +9,7 @@ declare(strict_types=1);
|
||||
* @contact group@hyperf.io
|
||||
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
|
||||
*/
|
||||
|
||||
namespace Hyperf\AsyncQueue\Aspect;
|
||||
|
||||
use Hyperf\AsyncQueue\Annotation\AsyncQueueMessage;
|
||||
|
@ -9,6 +9,7 @@ declare(strict_types=1);
|
||||
* @contact group@hyperf.io
|
||||
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
|
||||
*/
|
||||
|
||||
namespace Hyperf\AsyncQueue\Command;
|
||||
|
||||
use Hyperf\AsyncQueue\Driver\DriverFactory;
|
||||
|
@ -9,6 +9,7 @@ declare(strict_types=1);
|
||||
* @contact group@hyperf.io
|
||||
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
|
||||
*/
|
||||
|
||||
namespace Hyperf\AsyncQueue\Command;
|
||||
|
||||
use Hyperf\AsyncQueue\Driver\DriverFactory;
|
||||
|
@ -9,6 +9,7 @@ declare(strict_types=1);
|
||||
* @contact group@hyperf.io
|
||||
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
|
||||
*/
|
||||
|
||||
namespace Hyperf\AsyncQueue\Command;
|
||||
|
||||
use Hyperf\AsyncQueue\Driver\DriverFactory;
|
||||
|
@ -9,6 +9,7 @@ declare(strict_types=1);
|
||||
* @contact group@hyperf.io
|
||||
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
|
||||
*/
|
||||
|
||||
namespace Hyperf\AsyncQueue;
|
||||
|
||||
use Hyperf\AsyncQueue\Aspect\AsyncQueueAspect;
|
||||
|
@ -9,6 +9,7 @@ declare(strict_types=1);
|
||||
* @contact group@hyperf.io
|
||||
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
|
||||
*/
|
||||
|
||||
namespace Hyperf\AsyncQueue\Driver;
|
||||
|
||||
use Hyperf\AsyncQueue\Exception\InvalidQueueException;
|
||||
|
@ -9,6 +9,7 @@ declare(strict_types=1);
|
||||
* @contact group@hyperf.io
|
||||
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
|
||||
*/
|
||||
|
||||
namespace Hyperf\AsyncQueue\Driver;
|
||||
|
||||
use Hyperf\AsyncQueue\Event\AfterHandle;
|
||||
|
@ -9,6 +9,7 @@ declare(strict_types=1);
|
||||
* @contact group@hyperf.io
|
||||
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
|
||||
*/
|
||||
|
||||
namespace Hyperf\AsyncQueue\Driver;
|
||||
|
||||
use Hyperf\AsyncQueue\Exception\InvalidDriverException;
|
||||
|
@ -9,6 +9,7 @@ declare(strict_types=1);
|
||||
* @contact group@hyperf.io
|
||||
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
|
||||
*/
|
||||
|
||||
namespace Hyperf\AsyncQueue\Driver;
|
||||
|
||||
use Hyperf\AsyncQueue\JobInterface;
|
||||
|
@ -9,6 +9,7 @@ declare(strict_types=1);
|
||||
* @contact group@hyperf.io
|
||||
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
|
||||
*/
|
||||
|
||||
namespace Hyperf\AsyncQueue\Driver;
|
||||
|
||||
use Hyperf\AsyncQueue\Exception\InvalidQueueException;
|
||||
|
@ -9,6 +9,7 @@ declare(strict_types=1);
|
||||
* @contact group@hyperf.io
|
||||
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
|
||||
*/
|
||||
|
||||
namespace Hyperf\AsyncQueue;
|
||||
|
||||
use Hyperf\Context\Context;
|
||||
|
@ -9,6 +9,7 @@ declare(strict_types=1);
|
||||
* @contact group@hyperf.io
|
||||
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
|
||||
*/
|
||||
|
||||
namespace Hyperf\AsyncQueue\Event;
|
||||
|
||||
class AfterHandle extends Event
|
||||
|
@ -9,6 +9,7 @@ declare(strict_types=1);
|
||||
* @contact group@hyperf.io
|
||||
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
|
||||
*/
|
||||
|
||||
namespace Hyperf\AsyncQueue\Event;
|
||||
|
||||
class BeforeHandle extends Event
|
||||
|
@ -9,6 +9,7 @@ declare(strict_types=1);
|
||||
* @contact group@hyperf.io
|
||||
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
|
||||
*/
|
||||
|
||||
namespace Hyperf\AsyncQueue\Event;
|
||||
|
||||
use Hyperf\AsyncQueue\MessageInterface;
|
||||
|
@ -9,6 +9,7 @@ declare(strict_types=1);
|
||||
* @contact group@hyperf.io
|
||||
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
|
||||
*/
|
||||
|
||||
namespace Hyperf\AsyncQueue\Event;
|
||||
|
||||
use Hyperf\AsyncQueue\MessageInterface;
|
||||
|
@ -9,6 +9,7 @@ declare(strict_types=1);
|
||||
* @contact group@hyperf.io
|
||||
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
|
||||
*/
|
||||
|
||||
namespace Hyperf\AsyncQueue\Event;
|
||||
|
||||
use Hyperf\AsyncQueue\Driver\DriverInterface;
|
||||
|
@ -9,6 +9,7 @@ declare(strict_types=1);
|
||||
* @contact group@hyperf.io
|
||||
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
|
||||
*/
|
||||
|
||||
namespace Hyperf\AsyncQueue\Event;
|
||||
|
||||
use Hyperf\AsyncQueue\MessageInterface;
|
||||
|
@ -9,6 +9,7 @@ declare(strict_types=1);
|
||||
* @contact group@hyperf.io
|
||||
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
|
||||
*/
|
||||
|
||||
namespace Hyperf\AsyncQueue\Exception;
|
||||
|
||||
use RuntimeException;
|
||||
|
@ -9,6 +9,7 @@ declare(strict_types=1);
|
||||
* @contact group@hyperf.io
|
||||
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
|
||||
*/
|
||||
|
||||
namespace Hyperf\AsyncQueue\Exception;
|
||||
|
||||
use RuntimeException;
|
||||
|
@ -9,6 +9,7 @@ declare(strict_types=1);
|
||||
* @contact group@hyperf.io
|
||||
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
|
||||
*/
|
||||
|
||||
namespace Hyperf\AsyncQueue\Exception;
|
||||
|
||||
use RuntimeException;
|
||||
|
@ -9,6 +9,7 @@ declare(strict_types=1);
|
||||
* @contact group@hyperf.io
|
||||
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
|
||||
*/
|
||||
|
||||
namespace Hyperf\AsyncQueue;
|
||||
|
||||
use Hyperf\AsyncQueue\Driver\DriverFactory;
|
||||
|
@ -9,6 +9,7 @@ declare(strict_types=1);
|
||||
* @contact group@hyperf.io
|
||||
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
|
||||
*/
|
||||
|
||||
namespace Hyperf\AsyncQueue;
|
||||
|
||||
use Hyperf\Contract\CompressInterface;
|
||||
|
@ -9,6 +9,7 @@ declare(strict_types=1);
|
||||
* @contact group@hyperf.io
|
||||
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
|
||||
*/
|
||||
|
||||
namespace Hyperf\AsyncQueue;
|
||||
|
||||
use Throwable;
|
||||
|
@ -9,6 +9,7 @@ declare(strict_types=1);
|
||||
* @contact group@hyperf.io
|
||||
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
|
||||
*/
|
||||
|
||||
namespace Hyperf\AsyncQueue;
|
||||
|
||||
use Hyperf\Contract\CompressInterface;
|
||||
|
@ -9,6 +9,7 @@ declare(strict_types=1);
|
||||
* @contact group@hyperf.io
|
||||
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
|
||||
*/
|
||||
|
||||
namespace Hyperf\AsyncQueue\Listener;
|
||||
|
||||
use Hyperf\AsyncQueue\AnnotationJob;
|
||||
|
@ -9,6 +9,7 @@ declare(strict_types=1);
|
||||
* @contact group@hyperf.io
|
||||
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
|
||||
*/
|
||||
|
||||
namespace Hyperf\AsyncQueue\Listener;
|
||||
|
||||
use Hyperf\AsyncQueue\Event\QueueLength;
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user