Skip to content

Commit

Permalink
fix: cs fixes from new friendsofphp/php-cs-fixer
Browse files Browse the repository at this point in the history
  • Loading branch information
Gemorroj committed Mar 9, 2024
1 parent fd4d079 commit e4e40e1
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions src/Archive7z.php
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ class Archive7z
*
* @throws Exception
*/
public function __construct(string $filename, string $binary7z = null, ?float $timeout = 60.0)
public function __construct(string $filename, ?string $binary7z = null, ?float $timeout = 60.0)
{
$this->filename = $filename;
$this->timeout = $timeout;
Expand All @@ -103,7 +103,7 @@ public function __construct(string $filename, string $binary7z = null, ?float $t
*
* @throws Exception
*/
public static function get7zipInformation(string $binary7z = null): string
public static function get7zipInformation(?string $binary7z = null): string
{
$binary7z ??= static::makeBinary7z($binary7z);

Expand Down Expand Up @@ -339,7 +339,7 @@ public function getEntry(string $path): ?Entry
*
* @return Entry[]
*/
public function getEntries(string $pathMask = null, int $limit = null): array
public function getEntries(?string $pathMask = null, ?int $limit = null): array
{
$process = $this->makeProcess('l', \array_merge(
['-slt'],
Expand Down
2 changes: 1 addition & 1 deletion src/Archive7zTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ protected static function getAutoBinary7z(): ?string
/**
* @throws Exception
*/
protected static function makeBinary7z(string $binary7z = null): string
protected static function makeBinary7z(?string $binary7z = null): string
{
if (null === $binary7z) {
$binary7z = static::getAutoBinary7z();
Expand Down
2 changes: 1 addition & 1 deletion src/Parser.php
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ public function parseHeader(): array
/**
* @return array<int, array<string, string|string[]>>
*/
public function parseEntries(int $limit = null): array
public function parseEntries(?int $limit = null): array
{
$isHead = true;
$list = [];
Expand Down

0 comments on commit e4e40e1

Please sign in to comment.