added native types to closures (phpstan-strict-rules)

This commit is contained in:
Dylan K. Taylor
2020-02-05 16:35:10 +00:00
parent fd2a7797bd
commit fa82cb26d8
20 changed files with 24 additions and 24 deletions

View File

@ -157,7 +157,7 @@ class Sign extends Spawnable{
$removeFormat = $player->getRemoveFormat();
$ev = new SignChangeEvent($this->getBlock(), $player, array_map(function(string $line) use ($removeFormat){ return TextFormat::clean($line, $removeFormat); }, $lines));
$ev = new SignChangeEvent($this->getBlock(), $player, array_map(function(string $line) use ($removeFormat) : string{ return TextFormat::clean($line, $removeFormat); }, $lines));
$ev->call();
if(!$ev->isCancelled()){