Skip to content

Fix some mistakes

Fix some mistakes #20

Triggered via push September 27, 2023 13:59
Status Failure
Total duration 25s
Artifacts

ci.yml

on: push
Code Style checks
14s
Code Style checks
Matrix: PHPStan analysis
Fit to window
Zoom out
Zoom in

Annotations

11 errors
PHPStan analysis (ubuntu-latest, 8.1): src/thebigcrafter/Hydrogen/exceptions/Cancellation.php#L27
PHPDoc tag @param has invalid value (\Closure(CancelledException) $callback Callback to be invoked on a cancellation request. Will receive a `CancelledException` as first argument that may be used to fail the operation.): Unexpected token "(", expected variable at offset 265
PHPStan analysis (ubuntu-latest, 8.1): src/thebigcrafter/Hydrogen/exceptions/Cancellation.php#L46
PHPDoc tag @throws with type thebigcrafter\Hydrogen\exceptions\CancelledException is not subtype of Throwable
PHPStan analysis (ubuntu-latest, 8.1): src/thebigcrafter/Hydrogen/future/Future.php#L28
Method thebigcrafter\Hydrogen\future\Future::iterate() has parameter $futures with no value type specified in iterable type iterable.
PHPStan analysis (ubuntu-latest, 8.1): src/thebigcrafter/Hydrogen/future/Future.php#L28
Method thebigcrafter\Hydrogen\future\Future::iterate() return type has no value type specified in iterable type iterable.
PHPStan analysis (ubuntu-latest, 8.1): src/thebigcrafter/Hydrogen/future/Future.php#L72
PHPDoc tag @return contains generic type thebigcrafter\Hydrogen\future\Future<never> but class thebigcrafter\Hydrogen\future\Future is not generic.
PHPStan analysis (ubuntu-latest, 8.1): src/thebigcrafter/Hydrogen/future/Future.php#L75
PHPDoc tag @var for variable $state contains generic type thebigcrafter\Hydrogen\future\FutureState<never> but class thebigcrafter\Hydrogen\future\FutureState is not generic.
PHPStan analysis (ubuntu-latest, 8.1): src/thebigcrafter/Hydrogen/future/Future.php#L122
PHPDoc tag @var for variable $value contains unknown class thebigcrafter\Hydrogen\future\T.
PHPStan analysis (ubuntu-latest, 8.1): src/thebigcrafter/Hydrogen/future/Future.php#L216
Parameter #1 $id of method thebigcrafter\Hydrogen\exceptions\Cancellation::unsubscribe() expects string, string|null given.
PHPStan analysis (ubuntu-latest, 8.1): src/thebigcrafter/Hydrogen/future/FutureIterator.php#L33
PHPDoc tag @var for property thebigcrafter\Hydrogen\future\FutureIterator::$complete contains generic type thebigcrafter\Hydrogen\future\Future<null> but class thebigcrafter\Hydrogen\future\Future is not generic.
PHPStan analysis (ubuntu-latest, 8.1): src/thebigcrafter/Hydrogen/future/FutureIterator.php#L107
Method thebigcrafter\Hydrogen\future\FutureIterator::consume() return type has no value type specified in iterable type array.
Code Style checks
Process completed with exit code 8.