EntityShootBowEvent: fixed incorrect field type

This commit is contained in:
Dylan K. Taylor 2021-12-07 23:35:45 +00:00
parent e0eeb87ea0
commit 3d9e19546f
No known key found for this signature in database
GPG Key ID: 8927471A91CAFD3D
2 changed files with 1 additions and 6 deletions

View File

@ -39,7 +39,7 @@ class EntityShootBowEvent extends EntityEvent implements Cancellable{
/** @var Item */
private $bow;
/** @var Projectile */
/** @var Entity */
private $projectile;
/** @var float */
private $force;

View File

@ -600,11 +600,6 @@ parameters:
count: 1
path: ../../../src/entity/projectile/Projectile.php
-
message: "#^Property pocketmine\\\\event\\\\entity\\\\EntityShootBowEvent\\:\\:\\$projectile \\(pocketmine\\\\entity\\\\projectile\\\\Projectile\\) does not accept pocketmine\\\\entity\\\\Entity\\.$#"
count: 1
path: ../../../src/event/entity/EntityShootBowEvent.php
-
message: "#^Argument of an invalid type mixed supplied for foreach, only iterables are supported\\.$#"
count: 1