try supporting new & old pocketmine version #275
Annotations
24 errors and 3 warnings
PHPStan analysis (ubuntu-20.04, 8.3):
src/players/DefaultTestPlayerListener.php#L43
Strict comparison using === between 0 and -1 will always evaluate to false.
|
PHPStan analysis (ubuntu-20.04, 8.3):
src/players/DefaultTestPlayerListener.php#L45
Instantiated class pocketmine\network\mcpe\protocol\serializer\PacketSerializerContext not found.
|
PHPStan analysis (ubuntu-20.04, 8.3):
src/players/DefaultTestPlayerListener.php#L45
Static method pocketmine\network\mcpe\protocol\serializer\PacketSerializer::encoder() invoked with 1 parameter, 0 required.
|
PHPStan analysis (ubuntu-20.04, 8.3):
src/players/TestPacketSender.php#L10
Strict comparison using === between 0 and -1 will always evaluate to false.
|
PHPStan analysis (ubuntu-20.04, 8.3):
src/players/TestPacketSender.php#L12
Method ShockedPlot7560\PmmpUnit\players\TestPacketSender::send() overrides method pocketmine\network\mcpe\PacketSender::send() but misses parameter #3 $receiptId.
|
PHPStan analysis (ubuntu-20.04, 8.3):
src/players/TestPlayerManager.php#L157
Strict comparison using === between 0 and -1 will always evaluate to false.
|
PHPStan analysis (ubuntu-20.04, 8.3):
src/players/TestPlayerManager.php#L162
Class pocketmine\network\mcpe\StandardPacketBroadcaster constructor invoked with 2 parameters, 1 required.
|
PHPStan analysis (ubuntu-20.04, 8.3):
src/players/TestPlayerManager.php#L187
Strict comparison using === between 0 and -1 will always evaluate to false.
|
PHPStan analysis (ubuntu-20.04, 8.3):
src/players/TestPlayerManager.php#L188
Instantiated class pocketmine\network\mcpe\protocol\serializer\PacketSerializerContext not found.
|
PHPStan analysis (ubuntu-20.04, 8.3):
src/players/TestPlayerManager.php#L188
Static method pocketmine\network\mcpe\protocol\serializer\PacketSerializer::encoder() invoked with 1 parameter, 0 required.
|
Code Style checks
Your lock file does not contain a compatible set of packages. Please run composer update.
Problem 1
- symfony/process is locked to version v7.1.1 and an update of this package was not requested.
- symfony/process v7.1.1 requires php >=8.2 -> your php version (8.1.27) does not satisfy that requirement.
Problem 2
- symfony/process v7.1.1 requires php >=8.2 -> your php version (8.1.27) does not satisfy that requirement.
- friendsofphp/php-cs-fixer v3.41.1 requires symfony/process ^5.4 || ^6.0 || ^7.0 -> satisfiable by symfony/process[v7.1.1].
- friendsofphp/php-cs-fixer is locked to version v3.41.1 and an update of this package was not requested.
|
Code Style checks
Process completed with exit code 2.
|
PHPStan analysis (ubuntu-20.04, 8.1)
Your lock file does not contain a compatible set of packages. Please run composer update.
Problem 1
- symfony/process is locked to version v7.1.1 and an update of this package was not requested.
- symfony/process v7.1.1 requires php >=8.2 -> your php version (8.1.27) does not satisfy that requirement.
Problem 2
- symfony/process v7.1.1 requires php >=8.2 -> your php version (8.1.27) does not satisfy that requirement.
- friendsofphp/php-cs-fixer v3.41.1 requires symfony/process ^5.4 || ^6.0 || ^7.0 -> satisfiable by symfony/process[v7.1.1].
- friendsofphp/php-cs-fixer is locked to version v3.41.1 and an update of this package was not requested.
|
PHPStan analysis (ubuntu-20.04, 8.1)
Process completed with exit code 2.
|
PHPStan analysis (ubuntu-20.04, 8.2):
src/players/DefaultTestPlayerListener.php#L43
Strict comparison using === between 0 and -1 will always evaluate to false.
|
PHPStan analysis (ubuntu-20.04, 8.2):
src/players/DefaultTestPlayerListener.php#L45
Instantiated class pocketmine\network\mcpe\protocol\serializer\PacketSerializerContext not found.
|
PHPStan analysis (ubuntu-20.04, 8.2):
src/players/DefaultTestPlayerListener.php#L45
Static method pocketmine\network\mcpe\protocol\serializer\PacketSerializer::encoder() invoked with 1 parameter, 0 required.
|
PHPStan analysis (ubuntu-20.04, 8.2):
src/players/TestPacketSender.php#L10
Strict comparison using === between 0 and -1 will always evaluate to false.
|
PHPStan analysis (ubuntu-20.04, 8.2):
src/players/TestPacketSender.php#L12
Method ShockedPlot7560\PmmpUnit\players\TestPacketSender::send() overrides method pocketmine\network\mcpe\PacketSender::send() but misses parameter #3 $receiptId.
|
PHPStan analysis (ubuntu-20.04, 8.2):
src/players/TestPlayerManager.php#L157
Strict comparison using === between 0 and -1 will always evaluate to false.
|
PHPStan analysis (ubuntu-20.04, 8.2):
src/players/TestPlayerManager.php#L162
Class pocketmine\network\mcpe\StandardPacketBroadcaster constructor invoked with 2 parameters, 1 required.
|
PHPStan analysis (ubuntu-20.04, 8.2):
src/players/TestPlayerManager.php#L187
Strict comparison using === between 0 and -1 will always evaluate to false.
|
PHPStan analysis (ubuntu-20.04, 8.2):
src/players/TestPlayerManager.php#L188
Instantiated class pocketmine\network\mcpe\protocol\serializer\PacketSerializerContext not found.
|
PHPStan analysis (ubuntu-20.04, 8.2):
src/players/TestPlayerManager.php#L188
Static method pocketmine\network\mcpe\protocol\serializer\PacketSerializer::encoder() invoked with 1 parameter, 0 required.
|
PHPStan analysis (ubuntu-20.04, 8.3)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: pmmp/setup-php-action@2.0.0, actions/cache@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
PHPStan analysis (ubuntu-20.04, 8.1)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: pmmp/setup-php-action@2.0.0, actions/cache@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
PHPStan analysis (ubuntu-20.04, 8.2)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: pmmp/setup-php-action@2.0.0, actions/cache@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|