mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-30 23:29:54 +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
|
* @param Item[] $outputs
|
||||||
*
|
*
|
||||||
* @return CraftingRecipe[]|\Generator
|
* @return CraftingRecipe[]|\Generator
|
||||||
|
* @phpstan-return \Generator<int, CraftingRecipe, void, void>
|
||||||
*/
|
*/
|
||||||
public function matchRecipeByOutputs(array $outputs) : \Generator{
|
public function matchRecipeByOutputs(array $outputs) : \Generator{
|
||||||
//TODO: try to match special recipes before anything else (first they need to be implemented!)
|
//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
|
* @return \Generator
|
||||||
|
* @phpstan-return \Generator<int, string, void, void>
|
||||||
*/
|
*/
|
||||||
public function getPackets(){
|
public function getPackets(){
|
||||||
$stream = new NetworkBinaryStream($this->payload);
|
$stream = new NetworkBinaryStream($this->payload);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user