Skip to content

Commit

Permalink
Ran php-cs-fixer
Browse files Browse the repository at this point in the history
  • Loading branch information
sebprt committed Jan 26, 2024
1 parent c3d2271 commit e3e773e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/Dockerfile.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@ final class Dockerfile implements \IteratorAggregate, \Countable, FileInterface,
/** @var iterable|Dockerfile\LayerInterface[] */
private iterable $layers;

public function __construct(null|Dockerfile\LayerInterface ...$layers)
public function __construct(null|LayerInterface ...$layers)
{
$this->layers = $layers;

Check failure on line 17 in src/Dockerfile.php

View workflow job for this annotation

GitHub Actions / phpstan

Property Kiboko\Component\Dockerfile\Dockerfile::$layers (iterable<Kiboko\Component\Dockerfile\Dockerfile\LayerInterface>) does not accept array<int|string, Kiboko\Component\Dockerfile\Dockerfile\LayerInterface|null>.

Check failure on line 17 in src/Dockerfile.php

View workflow job for this annotation

GitHub Actions / phpstan

Property Kiboko\Component\Dockerfile\Dockerfile::$layers (iterable<Kiboko\Component\Dockerfile\Dockerfile\LayerInterface>) does not accept array<int|string, Kiboko\Component\Dockerfile\Dockerfile\LayerInterface|null>.
}

public function push(Dockerfile\LayerInterface ...$layers): void
public function push(LayerInterface ...$layers): void
{
array_push($this->layers, ...$layers);

Check failure on line 22 in src/Dockerfile.php

View workflow job for this annotation

GitHub Actions / phpstan

Parameter #1 $array of function array_push expects array, iterable<Kiboko\Component\Dockerfile\Dockerfile\LayerInterface> given.

Check failure on line 22 in src/Dockerfile.php

View workflow job for this annotation

GitHub Actions / phpstan

Parameter #1 $array of function array_push expects array, iterable<Kiboko\Component\Dockerfile\Dockerfile\LayerInterface> given.
}
Expand Down
3 changes: 1 addition & 2 deletions src/PHP/ComposerConfig.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@
public function __construct(
private string $host,
private string $token,
)
{
) {
}

public function __toString(): string
Expand Down

0 comments on commit e3e773e

Please sign in to comment.