Skip to content

Update checkForUpdates function #22

Update checkForUpdates function

Update checkForUpdates function #22

Triggered via push September 27, 2023 15:05
Status Failure
Total duration 27s
Artifacts

ci.yml

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

Annotations

11 errors
Code Style checks
Process completed with exit code 8.
PHPStan analysis (ubuntu-latest, 8.1): src/thebigcrafter/Hydrogen/Hydrogen.php#L38
Parameter #1 $message of method Logger::debug() expects string, pocketmine\utils\InternetException given.
PHPStan analysis (ubuntu-latest, 8.1): src/thebigcrafter/Hydrogen/Hydrogen.php#L41
Variable $res might not be defined.
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/DeferredFuture.php#L29
Parameter $value of method thebigcrafter\Hydrogen\future\DeferredFuture::complete() has invalid type thebigcrafter\Hydrogen\future\T.
PHPStan analysis (ubuntu-latest, 8.1): src/thebigcrafter/Hydrogen/future/DeferredFuture.php#L55
Method thebigcrafter\Hydrogen\future\DeferredFuture::getFuture() has invalid return type thebigcrafter\Hydrogen\future\T.
PHPStan analysis (ubuntu-latest, 8.1): src/thebigcrafter/Hydrogen/future/DeferredFuture.php#L55
PHPDoc tag @return contains generic type thebigcrafter\Hydrogen\future\Future<thebigcrafter\Hydrogen\future\T> but class thebigcrafter\Hydrogen\future\Future is not generic.
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.