Entity: do not assume that save IDs are always strings

this is only the first of many changes needed to make entity savedata fully format-agnostic, but it's a start.
This commit is contained in:
Dylan K. Taylor
2020-11-05 15:01:57 +00:00
parent 4b46549cd1
commit e6348bbd34
3 changed files with 14 additions and 1 deletions

View File

@ -530,6 +530,11 @@ parameters:
count: 1
path: ../../../src/data/bedrock/LegacyToStringBidirectionalIdMap.php
-
message: "#^Parameter \\#1 \\$value of class pocketmine\\\\nbt\\\\tag\\\\StringTag constructor expects string, string\\|false given\\.$#"
count: 1
path: ../../../src/entity/EntityFactory.php
-
message: "#^Method pocketmine\\\\entity\\\\EntityFactory\\:\\:getSaveId\\(\\) should return string but returns string\\|false\\.$#"
count: 1