Skip to content

Commit

Permalink
Add PHP8 Support
Browse files Browse the repository at this point in the history
  • Loading branch information
dsentker24 committed Sep 15, 2022
1 parent 1d1748e commit 6dbcaf5
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 11 deletions.
12 changes: 6 additions & 6 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,13 @@
],

"require": {
"php": "^7.0",
"guzzlehttp/guzzle": "~6.0|~7.0",
"php": "^7.0 || ^8.0",
"guzzlehttp/guzzle": "~6.0 || ^7.5.0",
"eightpoints/guzzle-bundle": "~8.0",
"symfony/http-kernel": "~4.0|~5.0",
"symfony/config": "~4.0|~5.0",
"symfony/dependency-injection": "~4.0|~5.0",
"symfony/expression-language": "~4.0|~5.0",
"symfony/http-kernel": "~4.0 || ~5.0",
"symfony/config": "~4.0 || ~5.0",
"symfony/dependency-injection": "~4.0 || ~5.0",
"symfony/expression-language": "~4.0 || ~5.0",
"kevinrob/guzzle-cache-middleware": "~3.0"
},

Expand Down
4 changes: 2 additions & 2 deletions src/Event/InvalidateRequestEvent.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ public function getRequest(): Request
$baseUri = $this->client->getConfig('base_uri');

if ($baseUri instanceof UriInterface) {
$uri = Psr7\UriResolver::resolve($baseUri, Psr7\uri_for($this->uri));
$uri = Psr7\UriResolver::resolve($baseUri, Psr7\Utils::uriFor($this->uri));
} else {
$uri = $this->uri;
}
Expand Down Expand Up @@ -131,7 +131,7 @@ public function getRequest(): Request
$baseUri = $this->client->getConfig('base_uri');

if ($baseUri instanceof UriInterface) {
$uri = Psr7\UriResolver::resolve($baseUri, Psr7\uri_for($this->uri));
$uri = Psr7\UriResolver::resolve($baseUri, Psr7\Utils::uriFor($this->uri));
} else {
$uri = $this->uri;
}
Expand Down
2 changes: 1 addition & 1 deletion tests/Event/InvalidateRequestEventTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class InvalidateRequestEventTest extends TestCase
{
public function testGeneralUseCase()
{
$baseUri = Psr7\uri_for('https://api.domain.tld');
$baseUri = Psr7\Utils::uriFor('https://api.domain.tld');

/** @var Client|\PHPUnit_Framework_MockObject_MockObject $client */
$client = $this->getMockBuilder(Client::class)->getMock();
Expand Down
2 changes: 1 addition & 1 deletion tests/EventListener/InvalidateRequestSubscriberTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public function testGeneralUseCase()

public function testGetSubscribedEventsResultType()
{
$this->assertInternalType('array', InvalidateRequestSubscriber::getSubscribedEvents());
$this->assertIsArray(InvalidateRequestSubscriber::getSubscribedEvents());
}

public function testGetSubscribedEventsHasInvalidateEvent()
Expand Down
2 changes: 1 addition & 1 deletion tests/GuzzleBundleCachePluginTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class GuzzleBundleCachePluginTest extends TestCase
/** @var GuzzleBundleCachePlugin */
protected $plugin;

public function setUp()
public function setUp(): void
{
parent::setUp();

Expand Down

0 comments on commit 6dbcaf5

Please sign in to comment.