Skip to content

Commit 1fdb5ae

Browse files
Chris8934pierredup
authored andcommitted
fix: PHP 8.4 deprecations
1 parent fd40149 commit 1fdb5ae

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/Action/OffsiteCaptureAction.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,11 @@ public function setGateway(GatewayInterface $gateway)
3333
}
3434

3535
/**
36-
* @param GenericTokenFactoryInterface $genericTokenFactory
36+
* @param ?GenericTokenFactoryInterface $genericTokenFactory
3737
*
3838
* @return void
3939
*/
40-
public function setGenericTokenFactory(GenericTokenFactoryInterface $genericTokenFactory = null)
40+
public function setGenericTokenFactory(?GenericTokenFactoryInterface $genericTokenFactory = null)
4141
{
4242
$this->tokenFactory = $genericTokenFactory;
4343
}

src/OmnipayGatewayFactory.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ class OmnipayGatewayFactory extends GatewayFactory
2727
*
2828
* @param OmnipayOmnipayGatewayFactory|null $omnipayGatewayFactory
2929
*/
30-
public function __construct(OmnipayOmnipayGatewayFactory $omnipayGatewayFactory = null, array $defaultConfig = array(), GatewayFactoryInterface $coreGatewayFactory = null)
30+
public function __construct(?OmnipayOmnipayGatewayFactory $omnipayGatewayFactory = null, array $defaultConfig = array(), ?GatewayFactoryInterface $coreGatewayFactory = null)
3131
{
3232
parent::__construct($defaultConfig, $coreGatewayFactory);
3333

0 commit comments

Comments
 (0)