Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/Curl/Concurrency.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,13 @@ final class Concurrency
private Sequence $scheduled;
/** @var \WeakMap<Scheduled, Either<Errors, Success>> */
private \WeakMap $finished;
/** @var ?positive-int */
/** @var ?int<1, max> */
private ?int $maxConcurrency;

/**
* @psalm-mutation-free
*
* @param ?positive-int $maxConcurrency
* @param ?int<1, max> $maxConcurrency
*/
private function __construct(?int $maxConcurrency = null)
{
Expand All @@ -45,7 +45,7 @@ private function __construct(?int $maxConcurrency = null)
/**
* @psalm-mutation-free
*
* @param ?positive-int $maxConcurrency
* @param ?int<1, max> $maxConcurrency
*/
public static function new(?int $maxConcurrency = null): self
{
Expand Down
6 changes: 3 additions & 3 deletions src/Header/Timeout.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
final class Timeout implements Custom
{
/**
* @param positive-int $seconds
* @param int<1, max> $seconds
*/
private function __construct(
private int $seconds,
Expand All @@ -27,15 +27,15 @@ private function __construct(
/**
* @psalm-pure
*
* @param positive-int $seconds
* @param int<1, max> $seconds
*/
public static function of(int $seconds): self
{
return new self($seconds);
}

/**
* @return positive-int
* @return int<1, max>
*/
public function seconds(): int
{
Expand Down
2 changes: 1 addition & 1 deletion tests/CurlTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ public function testResponseBody()
$license = <<<LICENSE
The MIT License (MIT)

Copyright (c) 2015-present
Copyright (c) 2015-present Innmind
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.


Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
Loading