diff --git a/src/Output/JsonEachRow.php b/src/Output/JsonEachRow.php index 1c1d20e..f4c185a 100644 --- a/src/Output/JsonEachRow.php +++ b/src/Output/JsonEachRow.php @@ -19,7 +19,7 @@ use const JSON_THROW_ON_ERROR; /** - * @template T + * @template-covariant T * @implements Output */ final readonly class JsonEachRow implements Output diff --git a/src/Output/Output.php b/src/Output/Output.php index 9e0739c..408371a 100644 --- a/src/Output/Output.php +++ b/src/Output/Output.php @@ -4,7 +4,7 @@ namespace SimPod\ClickHouseClient\Output; -/** @template T */ +/** @template-covariant T */ interface Output { public function __construct(string $contents);