mirror of
https://github.com/danog/amp.git
synced 2024-12-11 17:09:40 +01:00
21 lines
275 B
PHP
21 lines
275 B
PHP
<?php
|
|
|
|
use function Amp\coroutine;
|
|
use function Amp\Promise\wait;
|
|
|
|
/**
|
|
* @return void
|
|
*/
|
|
function accept(string $param)
|
|
{
|
|
}
|
|
|
|
$coroutine = coroutine(function (): \Generator {
|
|
yield;
|
|
|
|
return 123;
|
|
});
|
|
|
|
// psalm-expect InvalidScalarArgument
|
|
accept(wait($coroutine()));
|