mirror of
https://github.com/rectorphp/rector.git
synced 2025-01-17 21:38:22 +01:00
c29364dfcf
f3242bfadc
[CodeQuality] Handle crash inside block statement with unreachable statement on OptionalParametersAfterRequiredRector (#6640)
33 lines
798 B
PHP
33 lines
798 B
PHP
<?php
|
|
|
|
namespace RectorPrefix202501\Illuminate\Contracts\Redis;
|
|
|
|
use Closure;
|
|
interface Connection
|
|
{
|
|
/**
|
|
* Subscribe to a set of given channels for messages.
|
|
*
|
|
* @param array|string $channels
|
|
* @param \Closure $callback
|
|
* @return void
|
|
*/
|
|
public function subscribe($channels, Closure $callback);
|
|
/**
|
|
* Subscribe to a set of given channels with wildcards.
|
|
*
|
|
* @param array|string $channels
|
|
* @param \Closure $callback
|
|
* @return void
|
|
*/
|
|
public function psubscribe($channels, Closure $callback);
|
|
/**
|
|
* Run a command against the Redis database.
|
|
*
|
|
* @param string $method
|
|
* @param array $parameters
|
|
* @return mixed
|
|
*/
|
|
public function command($method, array $parameters = []);
|
|
}
|