Skip to content
This repository was archived by the owner on Aug 26, 2022. It is now read-only.
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/static.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: 7.4
php-version: 8.0
tools: composer:v2
coverage: none

Expand All @@ -40,7 +40,7 @@ jobs:
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: 7.4
php-version: 8.0
tools: composer:v2
coverage: none

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
php: ['7.4', '8.0']
php: ['8.0', '8.1']
dependency-version: [prefer-stable]

name: PHP ${{ matrix.php }} - ${{ matrix.os }} - ${{ matrix.dependency-version }}
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
],
"license": "MIT",
"require": {
"php": "^7.4 || ^8.0",
"php": "^8.0",
"api-platform/core": "^2.6",
"pestphp/pest": "^1.0",
"pestphp/pest-plugin": "^1.0"
Expand Down
8 changes: 6 additions & 2 deletions src/ApiPlatform.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
namespace Eerison\PestPluginApiPlatform;

use ApiPlatform\Core\Bridge\Symfony\Bundle\Test\ApiTestCase;
use ApiPlatform\Core\Bridge\Symfony\Bundle\Test\Client;

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