Skip to content

Commit

Permalink
Fix PHP-8 only syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
pierredup committed Apr 3, 2024
1 parent 0d51588 commit a687f48
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Tests/Action/ObtainCreditCardActionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,7 @@ public function testShouldPassFirstAndCurrentModelsToTemplate(): void

try {
$action->execute(new ObtainCreditCard($firstModel, $currentModel));
} catch (HttpResponse) {
} catch (HttpResponse $e) {
return;
}

Expand Down
2 changes: 1 addition & 1 deletion Tests/Security/HttpRequestVerifierTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ public function testShouldCallStorageDeleteModelMethodOnInvalidate(): void
/**
* @return MockObject|StorageInterface<object>
*/
protected function createStorageMock(): StorageInterface | MockObject
protected function createStorageMock()
{
return $this->createMock(StorageInterface::class);
}
Expand Down
6 changes: 3 additions & 3 deletions Tests/Security/TokenFactoryTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -487,20 +487,20 @@ public function testShouldAllowCreateAfterUrlWithFragment(): void
/**
* @return MockObject|StorageInterface<object>
*/
protected function createStorageMock(): StorageInterface | MockObject
protected function createStorageMock()
{
return $this->createMock(StorageInterface::class);
}

/**
* @return MockObject|StorageRegistryInterface<StorageInterface<object>>
*/
protected function createStorageRegistryMock(): MockObject | StorageRegistryInterface
protected function createStorageRegistryMock()
{
return $this->createMock(StorageRegistryInterface::class);
}

protected function createUrlGeneratorStub(): UrlGeneratorInterface | MockObject
protected function createUrlGeneratorStub()
{
$urlGenerator = $this->createMock(UrlGeneratorInterface::class);

Expand Down

0 comments on commit a687f48

Please sign in to comment.