Skip to content
Closed
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/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:

strategy:
matrix:
php-versions: ['7.1', '7.2', '7.3', '7.4']
php-versions: ['7.2', '7.3', '7.4', '8.0']

steps:
- uses: actions/checkout@v2
Expand Down Expand Up @@ -46,7 +46,7 @@ jobs:

- uses: shivammathur/setup-php@v2
with:
php-version: 7.1
php-version: 7.2

- name: Install Composer Dependencies
uses: ramsey/composer-install@v1
Expand Down
26 changes: 13 additions & 13 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,27 +17,27 @@
}
],
"require": {
"php": "^7.1",
"php": "^7.2 || ^8.0",
"php-http/cache-plugin": "^1.7.1",
"php-http/client-common": "^2.3",
"php-http/cache-plugin": "^1.7",
"php-http/discovery": "^1.11",
"php-http/httplug": "^2.1",
"php-http/multipart-stream-builder": "^1.1",
"php-http/discovery": "^1.12",
"php-http/httplug": "^2.2",
"php-http/multipart-stream-builder": "^1.1.2",
"psr/cache": "^1.0",
"psr/http-client-implementation": "^1.0",
"psr/http-factory-implementation": "^1.0",
"psr/http-message": "^1.0"
},
"require-dev": {
"cache/array-adapter": "^1.0.1",
"guzzlehttp/psr7": "^1.5.2",
"symfony/cache": "^5.1.8",
"guzzlehttp/psr7": "^1.7",
"http-interop/http-factory-guzzle": "^1.0",
"php-http/guzzle6-adapter": "^2.0.1",
"php-http/mock-client": "^1.4",
"phpstan/phpstan": "^0.12.32",
"phpstan/extension-installer": "^1.0.4",
"phpstan/phpstan-deprecation-rules": "^0.12.4",
"phpunit/phpunit": "^7.5.15 || ^8.4 || ^9.0"
"guzzlehttp/guzzle": "^7.2",
"php-http/mock-client": "^1.4.1",
"phpstan/phpstan": "^0.12.57",
"phpstan/extension-installer": "^1.0.5",
"phpstan/phpstan-deprecation-rules": "^0.12.5",
"phpunit/phpunit": "^8.5 || ^9.4"
},
"autoload": {
"psr-4": { "Github\\": "lib/Github/" }
Expand Down
6 changes: 3 additions & 3 deletions test/Github/Tests/Functional/CacheTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

namespace Github\Tests\Functional;

use Cache\Adapter\PHPArray\ArrayCachePool;
use Github\Client;
use GuzzleHttp\Psr7\Response;
use Symfony\Component\Cache\Adapter\ArrayAdapter;

/**
* @group functional
Expand All @@ -23,7 +23,7 @@ public function shouldServeCachedResponse()
$mockClient->addResponse($this->getCurrentUserResponse('octocat'));

$github = Client::createWithHttpClient($mockClient);
$github->addCache(new ArrayCachePool(), ['default_ttl'=>600]);
$github->addCache(new ArrayAdapter(), ['default_ttl'=>600]);

$github->authenticate('fake_token_aaa', Client::AUTH_ACCESS_TOKEN);
$userA = $github->currentUser()->show();
Expand All @@ -43,7 +43,7 @@ public function shouldVaryOnAuthorization()
$mockClient->addResponse($this->getCurrentUserResponse('octocat'));

$github = Client::createWithHttpClient($mockClient);
$github->addCache(new ArrayCachePool(), ['default_ttl'=>600]);
$github->addCache(new ArrayAdapter(), ['default_ttl'=>600]);

$github->authenticate('fake_token_aaa', Client::AUTH_ACCESS_TOKEN);
$userA = $github->currentUser()->show();
Expand Down