mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-07 12:18:46 +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
|
* @return bool
|
||||||
*/
|
*/
|
||||||
public static function registerEntity(string $className, bool $force = false, array $saveNames = []) : bool{
|
public static function registerEntity(string $className, bool $force = false, array $saveNames = []) : bool{
|
||||||
assert(is_a($className, Entity::class, true));
|
|
||||||
|
|
||||||
/** @var Entity $className */
|
/** @var Entity $className */
|
||||||
|
|
||||||
$class = new \ReflectionClass($className);
|
$class = new \ReflectionClass($className);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user