mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-10-18 04:00:29 +00:00
phpstan: use more class-string
This commit is contained in:
@@ -38,6 +38,7 @@ abstract class ProjectileItem extends Item{
|
||||
* Returns the entity type that this projectile creates. This should return a ::class extending Throwable.
|
||||
*
|
||||
* @return string class extends Throwable
|
||||
* @phpstan-return class-string<Throwable>
|
||||
*/
|
||||
abstract public function getProjectileEntityClass() : string;
|
||||
|
||||
|
@@ -33,11 +33,15 @@ use function lcg_value;
|
||||
|
||||
class SpawnEgg extends Item{
|
||||
|
||||
/** @var string */
|
||||
/**
|
||||
* @var string
|
||||
* @phpstan-var class-string<Entity>
|
||||
*/
|
||||
private $entityClass;
|
||||
|
||||
/**
|
||||
* @param string $entityClass instanceof Entity
|
||||
* @phpstan-param class-string<Entity> $entityClass
|
||||
*
|
||||
* @throws \InvalidArgumentException
|
||||
*/
|
||||
|
Reference in New Issue
Block a user