mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-22 08:44:01 +00:00
Remove redundant assert
This commit is contained in:
parent
93d60a9beb
commit
d48880e31b
@ -273,8 +273,6 @@ abstract class Entity extends Location implements Metadatable, EntityIds{
|
||||
* @return bool
|
||||
*/
|
||||
public static function registerEntity(string $className, bool $force = false, array $saveNames = []) : bool{
|
||||
assert(is_a($className, Entity::class, true));
|
||||
|
||||
/** @var Entity $className */
|
||||
|
||||
$class = new \ReflectionClass($className);
|
||||
|
Loading…
x
Reference in New Issue
Block a user