mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-09-28 09:34:59 +00:00
DX: apply rector rules up to php8.0
This commit is contained in:
@@ -18,19 +18,16 @@ use function implode;
|
||||
|
||||
class SearchApiNoQueryException extends RuntimeException
|
||||
{
|
||||
private array $parameters;
|
||||
|
||||
private string $pattern;
|
||||
|
||||
private array $types;
|
||||
|
||||
public function __construct(string $pattern = '', array $types = [], array $parameters = [], $code = 0, ?Throwable $previous = null)
|
||||
public function __construct(string $pattern = '', array $types = [], private array $parameters = [], $code = 0, ?Throwable $previous = null)
|
||||
{
|
||||
$typesStr = implode(', ', $types);
|
||||
$message = "No query for this search: pattern : {$pattern}, types: {$typesStr}";
|
||||
$this->pattern = $pattern;
|
||||
$this->types = $types;
|
||||
$this->parameters = $parameters;
|
||||
|
||||
parent::__construct($message, $code, $previous);
|
||||
}
|
||||
|
Reference in New Issue
Block a user