Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
rancoud committed Feb 3, 2024
1 parent 6b1ef50 commit 816639a
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/Client/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public function enableSSLVerification(): self
return $this;
}

public function setCAInfosPath(string $infos = null, string $path = null): self
public function setCAInfosPath(?string $infos = null, ?string $path = null): self
{
$this->CAInfosPath = ['info' => $infos, 'path' => $path];

Expand Down
2 changes: 1 addition & 1 deletion src/Client/Exception/ClientException.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ abstract class ClientException extends \Exception
*/
protected RequestInterface $request;

public function __construct(RequestInterface $request, string $message = '', int $code = 0, \Throwable $previous = null)
public function __construct(RequestInterface $request, string $message = '', int $code = 0, ?\Throwable $previous = null)
{
$this->request = $request;

Expand Down
6 changes: 3 additions & 3 deletions src/Message/Factory/Factory.php
Original file line number Diff line number Diff line change
Expand Up @@ -130,10 +130,10 @@ public function createStreamFromResource($resource): StreamInterface
*/
public function createUploadedFile(
StreamInterface $stream,
int $size = null,
?int $size = null,
int $error = \UPLOAD_ERR_OK,
string $clientFilename = null,
string $clientMediaType = null
?string $clientFilename = null,
?string $clientMediaType = null
): UploadedFileInterface {
if ($size === null) {
$size = $stream->getSize();
Expand Down
2 changes: 1 addition & 1 deletion src/Message/Response.php
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ public function __construct(
array $headers = [],
$body = null,
string $version = '1.1',
string $reason = null
?string $reason = null
) {
if (!isset(static::PHRASES[$status])) {
throw new \InvalidArgumentException('Status code has to be an integer between 100 and 799');
Expand Down

0 comments on commit 816639a

Please sign in to comment.