mirror of
https://github.com/danog/psalm.git
synced 2024-11-26 12:24:49 +01:00
Remove Amp stubs
This commit is contained in:
parent
370ffa28e4
commit
95ec189e0b
@ -40,10 +40,6 @@
|
||||
<class name="LogicException"/>
|
||||
</ignoreExceptions>
|
||||
|
||||
<stubs>
|
||||
<file name="src/Psalm/Internal/Stubs/Amp.php"/>
|
||||
</stubs>
|
||||
|
||||
<plugins>
|
||||
<plugin filename="examples/plugins/FunctionCasingChecker.php"/>
|
||||
<pluginClass class="Psalm\PhpUnitPlugin\Plugin"/>
|
||||
|
@ -1,62 +0,0 @@
|
||||
<?php
|
||||
namespace Amp;
|
||||
|
||||
/**
|
||||
* @template TReturn
|
||||
*
|
||||
* @param callable():\Generator<mixed, mixed, mixed, TReturn> $gen
|
||||
*
|
||||
* @return callable():Promise<TReturn>
|
||||
*/
|
||||
function coroutine(callable $gen) : callable
|
||||
{
|
||||
}
|
||||
|
||||
/**
|
||||
* @template TReturn
|
||||
*
|
||||
* @param callable():(\Generator<mixed, mixed, mixed, TReturn>|TReturn) $gen
|
||||
*
|
||||
* @return Promise<TReturn>
|
||||
*/
|
||||
function call(callable $gen) : Promise
|
||||
{
|
||||
}
|
||||
|
||||
/**
|
||||
* @template TReturn
|
||||
* @psalm-yield TReturn
|
||||
*/
|
||||
interface Promise
|
||||
{
|
||||
/**
|
||||
* @param callable(?\Throwable, ?TReturn):void $onResolved
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function onResolve(callable $onResolved);
|
||||
}
|
||||
|
||||
/**
|
||||
* @template TReturn
|
||||
*
|
||||
* @template-implements Promise<TReturn>
|
||||
*/
|
||||
class Success implements Promise
|
||||
{
|
||||
/**
|
||||
* @param TReturn|null $value
|
||||
*/
|
||||
public function __construct($value = null)
|
||||
{
|
||||
}
|
||||
|
||||
/**
|
||||
* @param callable(?Throwable, ?TReturn):void $onResolved
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function onResolve(callable $onResolved)
|
||||
{
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user