mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-22 16:51:42 +00:00
add some Generator generics for PHPStan
This commit is contained in:
parent
2b402e525a
commit
640df1003c
@ -254,6 +254,7 @@ class CraftingManager{
|
||||
* @param Item[] $outputs
|
||||
*
|
||||
* @return CraftingRecipe[]|\Generator
|
||||
* @phpstan-return \Generator<int, CraftingRecipe, void, void>
|
||||
*/
|
||||
public function matchRecipeByOutputs(array $outputs) : \Generator{
|
||||
//TODO: try to match special recipes before anything else (first they need to be implemented!)
|
||||
|
@ -91,6 +91,7 @@ class BatchPacket extends DataPacket{
|
||||
|
||||
/**
|
||||
* @return \Generator
|
||||
* @phpstan-return \Generator<int, string, void, void>
|
||||
*/
|
||||
public function getPackets(){
|
||||
$stream = new NetworkBinaryStream($this->payload);
|
||||
|
Loading…
x
Reference in New Issue
Block a user