Narrow types
This commit is contained in:
parent
b04e1d6a3f
commit
d04fbb0ae5
|
|
@ -38,8 +38,14 @@ use UnitEnum;
|
||||||
|
|
||||||
final readonly class Exporter
|
final readonly class Exporter
|
||||||
{
|
{
|
||||||
|
/**
|
||||||
|
* @var positive-int
|
||||||
|
*/
|
||||||
private int $shortenArraysLongerThan;
|
private int $shortenArraysLongerThan;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param positive-int $shortenArraysLongerThan
|
||||||
|
*/
|
||||||
public function __construct(int $shortenArraysLongerThan = 10)
|
public function __construct(int $shortenArraysLongerThan = 10)
|
||||||
{
|
{
|
||||||
$this->shortenArraysLongerThan = $shortenArraysLongerThan;
|
$this->shortenArraysLongerThan = $shortenArraysLongerThan;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue