Player API typehints

This commit is contained in:
Dylan K. Taylor
2017-08-17 11:08:54 +01:00
parent 670a9fe44f
commit 21a1e0eb6b
3 changed files with 50 additions and 32 deletions

View File

@ -107,7 +107,7 @@ class Human extends Creature implements ProjectileSource, InventoryHolder{
* @param string $str
* @param string $skinId
*/
public function setSkin($str, $skinId){
public function setSkin(string $str, string $skinId){
if(!Player::isValidSkin($str)){
throw new \InvalidStateException("Specified skin is not valid, must be 8KiB or 16KiB");
}