feat: improves DX on auto-complete

This commit is contained in:
Nuno Maduro
2023-02-17 21:02:07 +00:00
parent efca71f1e7
commit 49619ff2b5
5 changed files with 7 additions and 10 deletions

View File

@ -88,7 +88,7 @@ if (! function_exists('test')) {
* is the test description; the second argument is
* a closure that contains the test expectations.
*
* @return HigherOrderTapProxy<TestCall|TestCase>|TestCall|mixed
* @return TestCall|TestCase|mixed
*/
function test(string $description = null, Closure $closure = null): HigherOrderTapProxy|TestCall
{
@ -108,7 +108,7 @@ if (! function_exists('it')) {
* is the test description; the second argument is
* a closure that contains the test expectations.
*
* @return HigherOrderTapProxy<TestCall|TestCase>|TestCall|mixed
* @return TestCall|TestCase|mixed
*/
function it(string $description, Closure $closure = null): TestCall
{
@ -127,7 +127,7 @@ if (! function_exists('todo')) {
* is marked as incomplete. Yet, Collision, Pest's
* printer, will display it as a "todo" test.
*
* @return HigherOrderTapProxy<TestCall|TestCase>|TestCall|mixed
* @return TestCall|TestCase|mixed
*/
function todo(string $description): TestCall
{