Skip to content

Commit

Permalink
build(deps-dev): bump friendsofphp/php-cs-fixer from 3.48.0 to 3.49.0 (
Browse files Browse the repository at this point in the history
…#193)

* build(deps-dev): bump friendsofphp/php-cs-fixer from 3.48.0 to 3.49.0

Bumps [friendsofphp/php-cs-fixer](https://github.com/PHP-CS-Fixer/PHP-CS-Fixer) from 3.48.0 to 3.49.0.
- [Release notes](https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/releases)
- [Changelog](https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/blob/master/CHANGELOG.md)
- [Commits](PHP-CS-Fixer/PHP-CS-Fixer@v3.48.0...v3.49.0)

---
updated-dependencies:
- dependency-name: friendsofphp/php-cs-fixer
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* lint

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Sébastien Rancoud <rancoud@users.noreply.github.com>
  • Loading branch information
dependabot[bot] and rancoud authored Feb 3, 2024
1 parent 5e14a25 commit 4921060
Show file tree
Hide file tree
Showing 5 changed files with 48 additions and 48 deletions.
84 changes: 42 additions & 42 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

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 4921060

Please sign in to comment.