apply rules rector up to php82

This commit is contained in:
2023-05-01 21:39:45 +02:00
parent 81e8928344
commit 6d63177ff4
733 changed files with 1257 additions and 1322 deletions

View File

@@ -18,11 +18,11 @@ use function implode;
class SearchApiNoQueryException extends RuntimeException
{
private string $pattern;
private readonly string $pattern;
private array $types;
private readonly array $types;
public function __construct(string $pattern = '', array $types = [], private array $parameters = [], $code = 0, ?Throwable $previous = null)
public function __construct(string $pattern = '', array $types = [], private readonly array $parameters = [], $code = 0, ?Throwable $previous = null)
{
$typesStr = implode(', ', $types);
$message = "No query for this search: pattern : {$pattern}, types: {$typesStr}";