Skip to content
This repository was archived by the owner on Aug 26, 2022. It is now read-only.

Commit c6ad07f

Browse files
committed
Removed return type for createClient
1 parent ae27a90 commit c6ad07f

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/ApiPlatform.php

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
namespace Eerison\PestPluginApiPlatform;
66

77
use ApiPlatform\Core\Bridge\Symfony\Bundle\Test\ApiTestCase;
8-
use ApiPlatform\Core\Bridge\Symfony\Bundle\Test\Client;
98

109
/**
1110
* @internal
@@ -18,8 +17,13 @@ final class ApiPlatform extends ApiTestCase
1817
/**
1918
* @param array<string> $kernelOptions
2019
* @param array<string> $defaultOptions
20+
* I'm ignoring this return to be compatible with api plat form 2 and 3
21+
* error: Eerison\PestPluginApiPlatform\ApiPlatform::createApiClient():
22+
* Return value must be of type ApiPlatform\Core\Bridge\Symfony\Bundle\Test\Client,
23+
* ApiPlatform\Symfony\Bundle\Test\Client returned
24+
* @phpstan-ignore-next-line
2125
*/
22-
public static function createApiClient(array $kernelOptions = [], array $defaultOptions = []): Client
26+
public static function createApiClient(array $kernelOptions = [], array $defaultOptions = [])
2327
{
2428
return parent::createClient($kernelOptions, $defaultOptions);
2529
}

0 commit comments

Comments
 (0)