From d04fbb0ae5ba34d3358fa31f555bdde7af5ca570 Mon Sep 17 00:00:00 2001 From: Sebastian Bergmann Date: Tue, 18 Jun 2024 08:01:21 +0200 Subject: [PATCH] Narrow types --- src/Exporter.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/Exporter.php b/src/Exporter.php index 864ae9a..55d78b9 100644 --- a/src/Exporter.php +++ b/src/Exporter.php @@ -38,8 +38,14 @@ use UnitEnum; final readonly class Exporter { + /** + * @var positive-int + */ private int $shortenArraysLongerThan; + /** + * @param positive-int $shortenArraysLongerThan + */ public function __construct(int $shortenArraysLongerThan = 10) { $this->shortenArraysLongerThan = $shortenArraysLongerThan;