Skip to content

Commit

Permalink
Update cdn77/coding-standard requirement from ^4.0 to ^4.0 || ^5.0
Browse files Browse the repository at this point in the history
Updates the requirements on cdn77/coding-standard to permit the latest version.

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
  • Loading branch information
dependabot-preview[bot] authored and simPod committed Apr 14, 2021
1 parent 5814252 commit 953fe79
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 21 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"thecodingmachine/safe": "^1.0"
},
"require-dev": {
"cdn77/coding-standard": "^4.0",
"cdn77/coding-standard": "^5.0",
"infection/infection": "^0.20.1",
"nyholm/psr7": "^1.2",
"php-http/curl-client": "^2.1",
Expand Down
8 changes: 4 additions & 4 deletions src/Client/ClickHouseAsyncClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,18 +14,18 @@ interface ClickHouseAsyncClient
* @see Output hack for IDE to preserve `use`
*
* @param array<string, float|int|string> $requestParameters
*
* @psalm-template O of Output
* @psalm-param Format<O> $outputFormat
*
* @template O of Output
*/
public function select(string $sql, Format $outputFormat, array $requestParameters = []) : PromiseInterface;

/**
* @param array<string, float|int|string> $requestParameters
* @param array<string, mixed> $queryParameters
*
* @psalm-template O of Output
* @psalm-param Format<O> $outputFormat
*
* @template O of Output
*/
public function selectWithParameters(
string $query,
Expand Down
23 changes: 13 additions & 10 deletions src/Client/ClickHouseClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,20 +16,22 @@ public function executeQueryWithParameters(string $query, array $queryParameters

/**
* @param array<string, float|int|string> $requestParameters
* @psalm-param Format<O> $outputFormat
*
* @psalm-template O of Output
* @psalm-param Format<O> $outputFormat
* @psalm-return O
* @psalm-return O
*
* @template O of Output
*/
public function select(string $query, Format $outputFormat, array $requestParameters = []) : Output;

/**
* @param array<string, float|int|string> $requestParameters
* @param array<string, mixed> $queryParameters
* @param array<string, mixed> $queryParameters
* @psalm-param Format<O> $outputFormat
*
* @psalm-return O
*
* @psalm-template O of Output
* @psalm-param Format<O> $outputFormat
* @psalm-return O
* @template O of Output
*/
public function selectWithParameters(
string $query,
Expand All @@ -40,13 +42,14 @@ public function selectWithParameters(

/**
* @param array<array<mixed>> $values
* @param array<string>|null $columns
* @param array<string>|null $columns
*/
public function insert(string $table, array $values, ?array $columns = null) : void;

/**
* @psalm-template O of Output
* @psalm-param Format<O> $inputFormat
* @psalm-param Format<O> $inputFormat
*
* @template O of Output
*/
public function insertWithFormat(string $table, Format $inputFormat, string $data) : void;
}
2 changes: 1 addition & 1 deletion src/Format/Format.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

use SimPod\ClickHouseClient\Output\Output;

/** @psalm-template-covariant O of Output */
/** @template-covariant O of Output */
interface Format
{
/** @psalm-return O */
Expand Down
6 changes: 1 addition & 5 deletions src/Snippet/TableSizes.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,7 @@
/** @psalm-type entry = array{name: string, database: string, size: string, min_date: string, max_date: string} */
final class TableSizes
{
/**
* @return array<entry>
*
* @phpstan-return array<array<string, mixed>>
*/
/** @return array<array<string, mixed>> */
public static function run(ClickHouseClient $clickHouseClient, ?string $databaseName = null) : array
{
/**
Expand Down

0 comments on commit 953fe79

Please sign in to comment.