You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
PHP library for working with the NBT (Named Binary Tag) data storage format, as designed by Mojang.
5
+
6
+
## Examples
7
+
8
+
The library provides two NBT serializers: `BigEndianNbtSerializer` (typically suited for Minecraft Java) and `LittleEndianNbtSerializer` (typically used by Bedrock for storage).
9
+
10
+
Note: Bedrock network NBT (which uses varints in some places) is not implemented here. See [BedrockProtocol](https://github.com/pmmp/BedrockProtocol) for that.
11
+
12
+
Note: `TAG_LongArray` is not supported because Bedrock doesn't support it, so it's not clear how NBT trees intended for serialization by Bedrock would be restricted from using it.
Copy file name to clipboardExpand all lines: tests/phpstan/configs/phpstan-bugs.neon
+31-1Lines changed: 31 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -13,7 +13,37 @@ parameters:
13
13
path:../../../src/tag/IntArrayTag.php
14
14
15
15
-
16
-
message:'#^Property pocketmine\\nbt\\tag\\ListTag\:\:\$value \(list\<pocketmine\\nbt\\tag\\Tag\>\) does not accept non\-empty\-array\<int\<0, max\>, pocketmine\\nbt\\tag\\Tag\>\.$#'
16
+
message:'#^Property pocketmine\\nbt\\tag\\ListTag\<TValue of pocketmine\\nbt\\tag\\Tag \= pocketmine\\nbt\\tag\\Tag\>\:\:\$value \(list\<TValue of pocketmine\\nbt\\tag\\Tag \= pocketmine\\nbt\\tag\\Tag\>\) does not accept non\-empty\-array\<int\<0, max\>, \(TNewValue of TValue of pocketmine\\nbt\\tag\\Tag \= pocketmine\\nbt\\tag\\Tag\)\|TValue of pocketmine\\nbt\\tag\\Tag \= pocketmine\\nbt\\tag\\Tag\>\.$#'
17
17
identifier:assign.propertyType
18
18
count:1
19
19
path:../../../src/tag/ListTag.php
20
+
21
+
-
22
+
message:'#^Property pocketmine\\nbt\\tag\\ListTag\<TValue of pocketmine\\nbt\\tag\\Tag \= pocketmine\\nbt\\tag\\Tag\>\:\:\$value \(list\<TValue of pocketmine\\nbt\\tag\\Tag \= pocketmine\\nbt\\tag\\Tag\>\) does not accept non\-empty\-list\<\(TNewValue of TValue of pocketmine\\nbt\\tag\\Tag \= pocketmine\\nbt\\tag\\Tag\)\|TValue of pocketmine\\nbt\\tag\\Tag \= pocketmine\\nbt\\tag\\Tag\>\.$#'
23
+
identifier:assign.propertyType
24
+
count:3
25
+
path:../../../src/tag/ListTag.php
26
+
27
+
-
28
+
message:'#^Call to function is_string\(\) with string will always evaluate to true\.$#'
29
+
identifier:function.alreadyNarrowedType
30
+
count:1
31
+
path:../../phpunit/tag/CompoundTagTest.php
32
+
33
+
-
34
+
message:'#^Call to static method PHPUnit\\Framework\\Assert\:\:assertNotSame\(\) with \*NEVER\* and pocketmine\\nbt\\tag\\Tag will always evaluate to true\.$#'
35
+
identifier:staticMethod.alreadyNarrowedType
36
+
count:1
37
+
path:../../phpunit/tag/ListTagTest.php
38
+
39
+
-
40
+
message:'#^Call to static method PHPUnit\\Framework\\Assert\:\:assertSame\(\) with \*NEVER\* and pocketmine\\nbt\\tag\\Tag will always evaluate to false\.$#'
41
+
identifier:staticMethod.impossibleType
42
+
count:1
43
+
path:../../phpunit/tag/ListTagTest.php
44
+
45
+
-
46
+
message:'#^Instanceof between \*NEVER\* and pocketmine\\nbt\\tag\\ImmutableTag will always evaluate to false\.$#'
0 commit comments