Painting: use motive directly internally

this is cleaner and also fixes a phpstan level 8 error
This commit is contained in:
Dylan K. Taylor
2020-06-27 12:12:09 +01:00
parent 3c1b8b83f5
commit b7b5ea6fc9
2 changed files with 5 additions and 10 deletions

View File

@ -145,11 +145,6 @@ parameters:
count: 1
path: ../../../src/entity/Living.php
-
message: "#^Method pocketmine\\\\entity\\\\object\\\\Painting\\:\\:getMotive\\(\\) should return pocketmine\\\\entity\\\\object\\\\PaintingMotive but returns pocketmine\\\\entity\\\\object\\\\PaintingMotive\\|null\\.$#"
count: 1
path: ../../../src/entity/object/Painting.php
-
message: "#^Cannot call method getEffectLevel\\(\\) on pocketmine\\\\entity\\\\effect\\\\EffectInstance\\|null\\.$#"
count: 2