mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-04 17:06:16 +00:00
Added some missing typehints
This commit is contained in:
@ -110,13 +110,13 @@ abstract class Tile extends Position{
|
||||
}
|
||||
|
||||
/**
|
||||
* @param $className
|
||||
* @param array $saveNames
|
||||
* @param string $className
|
||||
* @param array $saveNames
|
||||
*
|
||||
* @return bool
|
||||
* @throws \ReflectionException
|
||||
*/
|
||||
public static function registerTile($className, array $saveNames = []) : bool{
|
||||
public static function registerTile(string $className, array $saveNames = []) : bool{
|
||||
$class = new \ReflectionClass($className);
|
||||
if(is_a($className, Tile::class, true) and !$class->isAbstract()){
|
||||
$shortName = $class->getShortName();
|
||||
|
Reference in New Issue
Block a user