-
Notifications
You must be signed in to change notification settings - Fork 101
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
66 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
<?php | ||
|
||
/* | ||
* | ||
* ____ _ _ __ __ _ __ __ ____ | ||
* | _ \ ___ ___| | _____| |_| \/ (_)_ __ ___ | \/ | _ \ | ||
* | |_) / _ \ / __| |/ / _ \ __| |\/| | | '_ \ / _ \_____| |\/| | |_) | | ||
* | __/ (_) | (__| < __/ |_| | | | | | | | __/_____| | | | __/ | ||
* |_| \___/ \___|_|\_\___|\__|_| |_|_|_| |_|\___| |_| |_|_| | ||
* | ||
* This program is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU Lesser General Public License as published by | ||
* the Free Software Foundation, either version 3 of the License, or | ||
* (at your option) any later version. | ||
* | ||
* @author PocketMine Team | ||
* @link http://www.pocketmine.net/ | ||
* | ||
* | ||
*/ | ||
|
||
declare(strict_types=1); | ||
|
||
namespace pocketmine\network\mcpe\protocol; | ||
|
||
/** | ||
* Ensures that PHPStan analyzes PacketHandlerDefaultImplTrait | ||
* under a normal usage. | ||
* TODO: Why don't we just have a PacketHandler class in protocol directly??? | ||
*/ | ||
final class DummyPacketHandler implements PacketHandlerInterface{ | ||
use PacketHandlerDefaultImplTrait; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,31 @@ | ||
parameters: | ||
ignoreErrors: | ||
- | ||
message: "#^Casting to string something that's already string\\.$#" | ||
message: '#^Casting to string something that''s already string\.$#' | ||
identifier: cast.useless | ||
count: 1 | ||
path: ../../../src/AvailableCommandsPacket.php | ||
|
||
- | ||
message: "#^Parameter \\#3 \\$packets of static method pocketmine\\\\network\\\\mcpe\\\\protocol\\\\serializer\\\\PacketBatch\\:\\:encodePackets\\(\\) expects array\\<int, pocketmine\\\\network\\\\mcpe\\\\protocol\\\\Packet\\>, array\\<int\\|string, pocketmine\\\\network\\\\mcpe\\\\protocol\\\\Packet\\> given\\.$#" | ||
message: '#^Expression "\(function \(\\pocketmine\\network\\mcpe\\protocol\\types\\command\\ChainedSubCommandData \.\.\.\$chainedSubCommandData\)\: void \{…" on a separate line does not do anything\.$#' | ||
identifier: expr.resultUnused | ||
count: 1 | ||
path: ../../../src/serializer/PacketBatch.php | ||
path: ../../../src/types/command/CommandData.php | ||
|
||
- | ||
message: '#^Expression "\(function \(\\pocketmine\\network\\mcpe\\protocol\\types\\command\\CommandOverload \.\.\.\$overloads\)\: void \{…" on a separate line does not do anything\.$#' | ||
identifier: expr.resultUnused | ||
count: 1 | ||
path: ../../../src/types/command/CommandData.php | ||
|
||
- | ||
message: '#^Expression "\(static function \(int \.\.\.\$_\)\: void \{…" on a separate line does not do anything\.$#' | ||
identifier: expr.resultUnused | ||
count: 1 | ||
path: ../../../src/types/command/CommandEnumConstraint.php | ||
|
||
- | ||
message: '#^Expression "\(function \(\\pocketmine\\network\\mcpe\\protocol\\types\\command\\CommandParameter \.\.\.\$parameters\)\: void \{…" on a separate line does not do anything\.$#' | ||
identifier: expr.resultUnused | ||
count: 1 | ||
path: ../../../src/types/command/CommandOverload.php |