Skip to content

Fixed the composer require command : escape shell arg #35

Fixed the composer require command : escape shell arg

Fixed the composer require command : escape shell arg #35

Triggered via push January 10, 2024 13:20
Status Failure
Total duration 35s
Artifacts

phpstan-8.yaml

on: push
Fit to window
Zoom out
Zoom in

Annotations

10 errors
phpstan: src/Dockerfile.php#L10
Class Kiboko\Component\Dockerfile\Dockerfile implements generic interface IteratorAggregate but does not specify its types: TKey, TValue
phpstan: src/Dockerfile.php#L17
Property Kiboko\Component\Dockerfile\Dockerfile::$layers (iterable<Kiboko\Component\Dockerfile\Dockerfile\LayerInterface>) does not accept array<int|string, Kiboko\Component\Dockerfile\Dockerfile\LayerInterface|null>.
phpstan: src/Dockerfile.php#L22
Parameter #1 $array of function array_push expects array, iterable<Kiboko\Component\Dockerfile\Dockerfile\LayerInterface> given.
phpstan: src/Dockerfile.php#L27
Parameter #2 $array of function array_map expects array, iterable<Kiboko\Component\Dockerfile\Dockerfile\LayerInterface> given.
phpstan: src/Dockerfile.php#L30
Method Kiboko\Component\Dockerfile\Dockerfile::getIterator() return type with generic class ArrayIterator does not specify its types: TKey, TValue
phpstan: src/Dockerfile.php#L32
Parameter #1 $array of class ArrayIterator constructor expects array<TKey of (int|string), TValue>, iterable<Kiboko\Component\Dockerfile\Dockerfile\LayerInterface> given.
phpstan: src/Dockerfile.php#L37
Parameter #1 $value of function count expects array|Countable, iterable<Kiboko\Component\Dockerfile\Dockerfile\LayerInterface> given.
phpstan: src/Dockerfile.php#L43
Parameter #1 $stream of function fwrite expects resource, resource|false given.
phpstan: src/Dockerfile.php#L44
Parameter #1 $stream of function fseek expects resource, resource|false given.
phpstan: src/Dockerfile.php#L46
Method Kiboko\Component\Dockerfile\Dockerfile::asResource() should return resource but returns resource|false.