mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-21 00:07:30 +00:00
Fix PHPStan
This commit is contained in:
parent
8822bdbefa
commit
82f9a25d88
@ -84,7 +84,7 @@ final class R12ItemIdToBlockIdMap{
|
||||
* @phpstan-param array<string, string> $itemToBlock
|
||||
*/
|
||||
public function __construct(array $itemToBlock){
|
||||
foreach($itemToBlock as $itemId => $blockId){
|
||||
foreach(Utils::stringifyKeys($itemToBlock) as $itemId => $blockId){
|
||||
$this->itemToBlock[mb_strtolower($itemId, 'US-ASCII')] = $blockId;
|
||||
$this->blockToItem[mb_strtolower($blockId, 'US-ASCII')] = $itemId;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user