Skip to content

Generalize asynchronous events #18

Generalize asynchronous events

Generalize asynchronous events #18

Triggered via pull request May 29, 2024 17:11
Status Failure
Total duration 1m 51s
Artifacts

main.yml

on: pull_request
Code Style checks
1m 18s
Code Style checks
Matrix: all-php-versions
Fit to window
Zoom out
Zoom in

Annotations

10 errors
Code Style checks
Process completed with exit code 8.
PHP 8.1 / PHPStan analysis: src/Server.php#L547
Parameter #1 $onSuccess of method pocketmine\promise\Promise<pocketmine\event\AsyncEvent>::onCompletion() expects Closure(pocketmine\event\AsyncEvent): void, Closure(pocketmine\event\player\PlayerDataSaveAsyncEvent): void given.
PHP 8.1 / PHPStan analysis: src/Server.php#L589
Parameter #1 $onSuccess of method pocketmine\promise\Promise<pocketmine\event\AsyncEvent>::onCompletion() expects Closure(pocketmine\event\AsyncEvent): void, Closure(pocketmine\event\player\PlayerCreationAsyncEvent): void given.
PHP 8.1 / PHPStan analysis
Process completed with exit code 1.
PHP 8.2 / PHPStan analysis: src/Server.php#L547
Parameter #1 $onSuccess of method pocketmine\promise\Promise<pocketmine\event\AsyncEvent>::onCompletion() expects Closure(pocketmine\event\AsyncEvent): void, Closure(pocketmine\event\player\PlayerDataSaveAsyncEvent): void given.
PHP 8.2 / PHPStan analysis: src/Server.php#L589
Parameter #1 $onSuccess of method pocketmine\promise\Promise<pocketmine\event\AsyncEvent>::onCompletion() expects Closure(pocketmine\event\AsyncEvent): void, Closure(pocketmine\event\player\PlayerCreationAsyncEvent): void given.
PHP 8.2 / PHPStan analysis
Process completed with exit code 1.
PHP 8.3 / PHPStan analysis: src/Server.php#L547
Parameter #1 $onSuccess of method pocketmine\promise\Promise<pocketmine\event\AsyncEvent>::onCompletion() expects Closure(pocketmine\event\AsyncEvent): void, Closure(pocketmine\event\player\PlayerDataSaveAsyncEvent): void given.
PHP 8.3 / PHPStan analysis: src/Server.php#L589
Parameter #1 $onSuccess of method pocketmine\promise\Promise<pocketmine\event\AsyncEvent>::onCompletion() expects Closure(pocketmine\event\AsyncEvent): void, Closure(pocketmine\event\player\PlayerCreationAsyncEvent): void given.
PHP 8.3 / PHPStan analysis
Process completed with exit code 1.