mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-07 12:18:46 +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
|
* @phpstan-param array<string, string> $itemToBlock
|
||||||
*/
|
*/
|
||||||
public function __construct(array $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->itemToBlock[mb_strtolower($itemId, 'US-ASCII')] = $blockId;
|
||||||
$this->blockToItem[mb_strtolower($blockId, 'US-ASCII')] = $itemId;
|
$this->blockToItem[mb_strtolower($blockId, 'US-ASCII')] = $itemId;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user